Consultor Eletrônico



Kbase 21035: ESQL-92 Guide and Reference -- Sample Program Failure
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Version 9.X

SYMPTOM(s):

Error involving test.c occurs after attempting to run example within the docs

test.c(3923) : error C2137: empty character constant

CAUSE:

Incorrect examples presented within the "Embedded SQL-92 Guide and Reference"

All four example programs (1StatUpd.pc, 2StatSel.pc, 3DynUpd.pc, 4DynSel.pc) have the same syntax problem.
The following line in the C code is the cause of the error:

errmesg[sqlca.sqlerrml] = '' ;

FIX:

Change both single quotes to double quotes:
errmesg[sqlca.sqlerrml] = "" ;