|
Occasionally I find that when trying to do an UPDATE or a DELETE usingACS Run SQL Scripts, I will get a syntax error which prevents the
operation, but if I copy and paste the statement string into agreen-screen STRSQL session, it works just fine. (This only happens with
UPDATE and DELETE, not with SELECT.)17513;
Here is an example:
-----------------------------------------------------------------------
-------------------------------------------------
update rsprdlog set nonprod = 'Y' where derrick# = 'PAG' and block# =
-----------------------------------------------------------------------updated):
-------------------------------------------------
This is met with the following result (there should have been two rows
-----------------------------------------------------------------------statement. Cause . . . . . : The SQL statement contains syntax that is
-----------
SQL State: 0168I
Vendor Code: 362
Message: [SQL0362] Flagging detected an error in the current SQL
Statement ran successfully, with warnings (3 ms)"derrick#". And yes, there are spaces between all the words even if they're >hard to see.
0 rows were affected by the statement
-----------------------------------------------------------------------
-----------
Position 41 is the first letter of the conditioning column name
standard. The previous two tokens were 'Y' and WHERE. One of the >tokens may be a reserved word.
Job log shows:
-----------------------------------------------------------------------
----------- At token derrick#, the syntax of the SQL statement deviates
from the ANS
-----------------------------------------------------------------------more forgiving?
----------- Well, yes, WHERE is a reserved word, but what's wrong with
it here?
So (a) what am I doing wrong, and (b) if there is an error, why is
STRSQL
System is 7.1
ACS is 1.1.7.1 (just updated, but this happened with 1.1.6 as well).
Thanks,
Bill Reed
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.