If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Non-printable characters in Informix esql/C query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-06, 07:34
exterminator exterminator is offline
Registered User
 
Join Date: Jan 2006
Posts: 38
Non-printable characters in Informix esql/C query

I am sorry to post again if this issue has been answered already in past. I am tired of searching about how to rectify this problem.

I have a query being built in eSql/C codes. I get an input string from external sources - C++ or Java code... Now when the query builds and executes - it gives the error message -202 and fails to execute which is as follows on the IBM documentation:
Code:
-202	An illegal character has been found in the statement.

A character that cannot be interpreted as part of an SQL statement is
embedded in this statement. If a program constructed the statement, the
character might be a nonprinting control character. Make sure the
statement contains only printable ASCII characters, and reexecute it.
The special character is ^_ (control-underscore, ASCII - 31 in decimal). I don't know how this is getting into the input string . Is this normal/common? I use C-style character arrays to store the input strings and then dynamically build the query string. Any insights as to why this is happening and how to resolve this or any other prospect of something similar to it but different coming into the picture later on...?

Thanks for all the help until now and for having a patient look. Best regards.

Last edited by exterminator; 03-14-06 at 07:40.
Reply With Quote
  #2 (permalink)  
Old 03-15-06, 01:17
sysmaster sysmaster is offline
Registered User
 
Join Date: Mar 2006
Posts: 15
Maybe you use program, which automaticaly switch between languages on your keyboard?

Last edited by sysmaster; 03-15-06 at 01:30.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On