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 > DELIMIDENT with JDBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-05, 16:43
mayera21 mayera21 is offline
Registered User
 
Join Date: Feb 2005
Posts: 5
DELIMIDENT with JDBC

I have IDS 9.4 running on Windows 2000.
I have DELIMIDENT set equal to "yes" in the Environment Variables
When I connect to the database via DBAccess and try something like this:
select accountId as "ACCT" from account
It works fine.
If I try the same thing over JDBC I get:
Message : A syntax error has occurred.
Error Code : -201
SQLState : 42000
StackTrace :java.sql.SQLException: A syntax error has occurred.
Reply With Quote
  #2 (permalink)  
Old 03-10-05, 14:08
mayera21 mayera21 is offline
Registered User
 
Join Date: Feb 2005
Posts: 5
Never mind--I was passing the SQL via XML and had something like this:
select accountId as "ACCT", acountName as .....

When I put a space between the " and the "," it worked.
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