Article ID: 186378
Article Last Modified on 3/2/2005
SELECT * FROM PRBSPACE WHERE C1 = 'For Your Eyes Only'Some SQL keywords generate different errors. The SQL keywords must be followed by a space to cause the problem. The sample provided later shows the problem with the FOR and SELECT keywords. The problem is case insensitive and the ORDER and GROUP keywords also cause the same problem.
CREATE TABLE PRBSPACE (C1 VARCHAR(20))
INSERT INTO PRBSPACE VALUES ('For Your Eyes Only')
INSERT INTO PRBSPACE VALUES ('Select a Word')
INSERT INTO PRBSPACE VALUES ('This is a test')
SQL_CURSOR_KEYSET_DRIVEN=1 SQL_CONCUR_VALUES=4Click OK.
SQLCancel
SELECT * FROM PRBSPACE WHERE C1 = 'This is a test'Follow steps 4 through 7. No Error, and data is returned.
SQLCancelChange the WHERE clause to:
SELECT * FROM PRBSPACE WHERE C1 = 'Select a Word'Follow steps 4 through 7. Now the error occurs on the SQLPrepare:
Keywords: kbbug kbfix kboracle kbdatabase kbvbp600fix kbdriver kbmdacnosweep KB186378