php - Is this a bug with Advantage Database? -
I'm wondering what to be a bug in the Advantage Database PHP extension (I know, I know ... ). I've told it as a bug, but still have not heard anything, so I thought I would run it by your people.
Task Code:
For ($ i = 0; $ i & lt; 100; $ i ++) {$ connection = Ads_connect ('DataDirectory = \\ Something \ path \; Server Type = 2; WriteKinging = Off; TritroilingSpace = True; CommType = TCP_IP;', '', ''); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_ Off ($ connection); } This is the thief through just 100 times, connects to the DB, executes the query, and disconnects.
Non-job code: ($ I = 0; $ i & lt; 100; $ i ++)
$ Connection = ads_connect ('datadirectory = \\ some path, server type = 2; rightsct = $ Result = ads_do ($ connection, select 'top 1 * project'); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_ Off ($ connection); } Note the second query execution?
Error 6303: The maximum profit is exceeded by the database server connection.
I have tried many other things with it, which does not have success:
($ I = 0; $ i & lt; 100; $ i ++) for {$ connection = ads_connect ('data directory = \\ some path'; server type = 2; check rights = close ; Tritthripping = true; cumut type = TCP_IP; ',' ',' '); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_free_result ($ results); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_free_result ($ results); Ads_ Off ($ connection); } This, however, fixes the problem No , and both questions still execute successfully and accurately! ($ I = 0; $ i & lt; 100; $ i ++) {$ connection = ads_connect ('DataDirectory = \\ Something \ path \\ Server Type = 2 ; Checking rights = closed; TritroilingSpace = true; Command type = TCP_IP; '', ''); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_ Off ($ connection); $ Result = ads_do ($ connection, select 'top 1 * project'); Ads_ Off ($ connection); }
All this seems very strange to me ... any thoughts?
Edit: I am on PHP 5.2.5 and ADS 8.1
6303 error is the basis of knowledge on this basis and how possible to increase the number of connections, a customer. R & D is currently investigating this problem and is working to resolve it in the next service release.
Comments
Post a Comment