скрытое
2015.02.06 (Friday) 09:42:26
----- Прерывание работы программы -----
сообщение: "Синтаксическая ошибка: ожидается идентификатор или идентификатор в кавычках."
исключение: System.InvalidOperationException
источник: System.Data.OracleClient
данные: соединено с: База даных=DEMO91; Пользователь=SUPERMAG
текст команды: SELECT t.article,
t.price,
supermag.russianspell.PriceCardString(0, t.price) as grn,
supermag.russianspell.PriceCardString(2, t.price) as kop,
supermag.russianspell.PriceCardString(0, t.oldprice) as oldprice_grn,
supermag.russianspell.PriceCardString(2, t.oldprice) as oldprice_kop,
t.RubName,
t.KopName,
(select p.PropVal
from supermag.SMCardProperties p
where p.Article=t.Article
and p.PropID='Sys.Composition') Composition,
(select p.PropVal
from supermag.SMCardProperties p
where p.Article=t.Article
and p.PropID='Sys.BrandName') BrandName,
(select p.PropVal
from supermag.SMCardProperties p
where p.Article=t.Article
and p.PropID='Vesy_number') Vesy_number,
t.name,
t.cardcomment,
t.country,
t.qtyprint,
t.unitname,
t.isscale,
t.plu,
t.price_ma,
supermag.russianspell.PriceCardString(0, t.price_ma) as price_ma1,
supermag.russianspell.PriceCardString(2, t.price_ma) as price_ma2,
t.ma_id,
t.ma_datebegin,
t.ma_dateend
FROM (
SELECT t_pr.article,
(case when d.docstate=2 then
ROUND(sp.itemprice*t_pr.qty, t_pr.priceprec)
else
t_pr.price
end
) price,
(case when d.docstate=2 then
t_pr.price
else
(select ROUND(ph.price*t_pr.qty, t_pr.priceprec)
from supermag.SMPriceHistory ph
where (eventtime, recid) =
(select max(eventtime), max(recid)
from supermag.SMPriceHistory
where article = ph.article
and storeloc = ph.storeloc
and pricetype = ph.pricetype
and ROUND(price*t_pr.qty, t_pr.priceprec) != t_pr.price)
and ph.storeloc = :P_LOC
and ph.article = t_pr.article
and ph.pricetype = :P_PRICE_TYPE
and ROUND(ph.price*t_pr.qty, t_pr.priceprec) != t_pr.price)
end
) oldprice,
t_pr.RubName,
t_pr.KopName,
t_pr.name,
t_pr.cardcomment,
t_pr.country,
t_pr.qtyprint,
t_pr.unitname,
t_pr.isscale,
t_pr.plu,
sp.itemprice price_ma,
d.id ma_id,
TRUNC (au.datebegin) ma_datebegin,
TRUNC (au.dateend) ma_dateend
FROM supermag.svpricecard t_pr,
supermag.smdocuments d,
supermag.SMSpecMA sp,
supermag.smauctions au
WHERE t_pr.article = sp.article
AND d.doctype = 'MA'
AND d.id = sp.docid
AND d.doctype = sp.doctype
AND t_pr.article = sp.article
AND d.id = au.id
AND d.doctype = au.doctype
AND d.docstate >= 2
AND au.dateend > SYSDATE
AND (:P_LOC,:P_PRICE_TYPE) IN (SELECT am.locid, am.pricetype
FROM supermag.smauctionatoms am
WHERE am.aucid = d.id AND am.doctype = d.doctype)
) t
ORDER BY ma_id, article
тип команды: Text
параметры: P_ARTICLE=«»; P_LOC=«»; P_PRICE_TYPE=«»; P_QTY=«»
метод: Void Parse2(System.String)
в System.Data.OracleClient.DbSqlParser.Parse2(String statementText)
в System.Data.OracleClient.OracleDataReader.FillSchemaTable(DataTable schemaTable)
в System.Data.OracleClient.OracleDataReader.GetSchemaTable()
в System.Data.ProviderBase.SchemaMapping..ctor(DataAdapter adapter, DataSet dataset, DataTable datatable, DataReaderContainer dataReader, Boolean keyInfo, SchemaType schemaType, String sourceTableName, Boolean gettingData, DataColumn parentChapterColumn, Object parentChapterValue)
в System.Data.Common.DataAdapter.FillSchemaFromReader(DataSet dataset, DataTable datatable, SchemaType schemaType, String srcTable, IDataReader dataReader)
в System.Data.Common.DataAdapter.FillSchema(DataTable dataTable, SchemaType schemaType, IDataReader dataReader)
в System.Data.Common.DbDataAdapter.FillSchemaInternal(DataSet dataset, DataTable datatable, SchemaType schemaType, IDbCommand command, String srcTable, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.FillSchema(DataTable dataTable, SchemaType schemaType, IDbCommand command, CommandBehavior behavior)
в System.Data.Common.DbDataAdapter.FillSchema(DataTable dataTable, SchemaType schemaType)
в Sm.Server.Database.OracleRunner.FillSchema(OracleSafeAdapter dataAdapter, DataTable dataTable, SchemaType schemaType)
в Sm.FastReports.Server.FastReportBO.FillTableSchema(BusinessOperation businessOperation, String selectCommand, OracleParameterDescription[] parameters, Object[][]& dataTable)
в Sm.FastReports.Server.FastReportBO.Sm.FastReports.Link.IFastReportBO.FillTableSchemaBegin(BusinessOperation businessOperation, String selectCommand, OracleParameterDescription[] parameters, Object[][]& dataTable)
в Sm.FastReports.SupermagFastReportConnection.<>c__DisplayClass3.<FillTableSchema>b__0(IFastReportBO bo)
в Sm.FastReports.Server.DesignerServer.LocalClient`1.Do(Action`1 action)
в Sm.FastReports.SupermagFastReportConnection.FillTableSchema(DataTable table, String selectCommand, CommandParameterCollection parameters)
в FastReport.Data.TableDataSource.InitSchema()
в FastReport.Data.TableDataSource.RefreshTable()
в Sm.FastReports.Designer.DesignerConnection.RefreshTableColumn(TableDataSource dataSource)