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 > error -309 using order by via ODBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-03, 08:15
MEP MEP is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Question error -309 using order by via ODBC

Hello,
we have migrated our database to IDS 9.21 and work with it via ODBC
SDK 2.81.TC2 and IBM Informix 3.82.
Starting a select statement with an 'order by', i get now an error message 309, if the field i wish to sort is not a primary key.
Is this a known problem or can anyone help us?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 10-08-03, 10:03
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: error -309 using order by via ODBC

Quote:
Originally posted by MEP
Hello,
we have migrated our database to IDS 9.21 and work with it via ODBC
SDK 2.81.TC2 and IBM Informix 3.82.
Starting a select statement with an 'order by', i get now an error message 309, if the field i wish to sort is not a primary key.
Is this a known problem or can anyone help us?

Thanks in advance
Hi,

Verify the syntax SQL.
column-name must be in SELECT list

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 10-08-03, 15:28
MEP MEP is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Re: error -309 using order by via ODBC

Quote:
Originally posted by gurey
Hi,

Verify the syntax SQL.
column-name must be in SELECT list

Gustavo.
Dear Gustavo,

certainly the ordered column is in the select list.
The problem is, that the order by only gets a result
if i try it with primary keys or parts of it.
The problem isn't as simple as you believe.
I hope ther exists an other solution.

Greatings from
Monika
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