Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 2008-10-02   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 4
Unhappy Problem using ingres PHP driver v2

Hi,

I'm trying to use ingres PHP driver v2 and get errors on queries.
I am using the attached test script. The query runs fine using isql tool from the same machine, but fails with following error in the script :

Ingres EXT Version is 2.0.0, Ingres API Version is 6
>> Connection succeeded.

Error during query : 2500
Error during query : Syntax error on line 1. Last symbol read was: 'scroll'.
Error during query : 42000
i died

What do I do wrong ?

Thanks for your help,

Ti'Stef
Attached Files
File Type: txt test.txt (1.5 KB, 4 views)
padst01 is offline   Reply With Quote
Old 2008-10-07   #2 (permalink)
Member
 
Join Date: Mar 2007
Posts: 73
Default

Try changing the order of the arguments passed to the ingres_query function so that $conn is second in the argument list.
Code:
$rc=ingres_query("select ap_id, ap_iatacode, ap_place, ap_name, ap_ccode from airport", $conn);
notnull is offline   Reply With Quote
Old 2008-10-07   #3 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 4
Talking

Hi Notnull,

With some assistance, I found where the problem was: PHP Driver and application run against a 2006r3 beta client, connecting to a 2006r2 server. PHP driver currently does not detect features supported by the server (it detects the features of the client it runs on), so the query failed because of new scrolling cursors feature not being supported in R2 while these are supported by R3.

So if I want to make this work, I need tu use the same version between Server and Client.

Stephane
padst01 is offline   Reply With Quote
Reply

Tags
error, php, scroll

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Contact Us | Ingres Corporation | Archive | Top
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0