|
|
Choosing A Webhost: |
missing delimiter error with REPMCLI: msg#00196db.maxdb
Hi, I have a problem with REPMCLI y execute something(Create a View, Create a Function, Create a StroredProcedure) that it content the function IFNULL for ej: CREATE VIEW "RV_C_INVOICELINE" ("AD_CLIENT_ID","AD_ORG_ID","C_INVOICELINE_ID","C_INVOICE_ID","SALESREP_ID","C_BPARTNER_ID","C_BP_GROUP_ID","M_PRODUCT_ID","M_PRODUCT_CATEGORY_ID","DATEINVOICED","DATEACCT","QTYINVOICED","PRICELIST","PRICEACTUAL","PRICELIMIT","DISCOUNT","MARGIN","LINENETAMT","LINELISTAMT","LINELIMITAMT","LINEDISCOUNTAMT","LINEOVERLIMITAMT") AS SELECT il.AD_Client_ID, il.AD_Org_ID, il.C_InvoiceLine_ID, i.C_Invoice_ID, i.SalesRep_ID, i.C_BPartner_ID, i.C_BP_Group_ID, il.M_Product_ID, p.M_Product_Category_ID, i.DateInvoiced, i.DateAcct,-- Qty il.QtyInvoiced*i.Multiplier AS QtyInvoiced,-- Item Amounts il.PriceList, il.PriceActual, il.PriceLimit, DECODE(PriceList, 0, 0, ROUND((PriceList-PriceActual)/PriceList*100,2)) AS Discount, DECODE(PriceLimit, 0, 0, ROUND((PriceActual-PriceLimit)/PriceLimit*100,2)) AS Margin,-- Line Amounts ROUND(i.Multiplier*LineNetAmt, 2) AS LineNetAmt, ROUND(i.Multiplier*PriceList*QtyInvoiced, 2) AS LineListAmt, DECODE(IFNULL(il.PriceLimit, 0), 0, ROUND(i.Multiplier*LineNetAmt,2), * * *PROBLEM----^ ROUND(i.Multiplier*PriceLimit*QtyInvoiced,2)) AS LineLimitAmt, ROUND(i.Multiplier*PriceList*QtyInvoiced-LineNetAmt,2) AS LineDiscountAmt, DECODE(IFNULL(il.PriceLimit,0), 0, 0, ROUND(i.Multiplier*LineNetAmt-PriceLimit*QtyInvoiced,2)) AS LineOverLimitAmt FROM RV_C_Invoice i, C_InvoiceLine il, M_Product p WHERE i.C_Invoice_ID=il.C_Invoice_ID AND il.M_Product_ID=p.M_Product_ID And I get the next Error: Missing Delimiter I detect that is this function, because if I omit the function IFNULL, it works fine Thanks, Jesus Barreto -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | JDBC driver issue, Heiko Giesselmann |
|---|---|
| Next by Date: | Error messages, Edson Carlos Ericksson Richter |
| Previous by Thread: | JDBC driver issue, Heiko Giesselmann |
| Next by Thread: | Error messages, Edson Carlos Ericksson Richter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|