Re: [Virtuoso-users] Problem with TOP queries

2007-10-05 Thread Sören Auer
I finally found a solution: the pdo_odbc driver seems to work fine :-) Quite easy solution, but it took me a while to figure that out :-( Sören

Re: [Virtuoso-users] Problem with TOP queries

2007-10-05 Thread Sören Auer
On 10/5/07, Mitko Iliev wrote: > The problem is that php open the cursor as dynamic, as a workaround can > try to set the cursor as forward only. That seems to be too complicated for me right now. I'm also wondering why TOP is even not considered if I do SELECT DISTINCT, which according to the do

Re: [Virtuoso-users] Problem with TOP queries

2007-10-05 Thread Mitko Iliev
Hi Sören, The problem is that php open the cursor as dynamic, as a workaround can try to set the cursor as forward only. We are looking for a solution. Best Regards, Mitko Sören Auer wrote: > Hi all, > > I tried the following code with both Virtuoso for Windows and Linux: > > $db=odbc_connect('v

Re: [Virtuoso-users] Problem with TOP queries

2007-10-05 Thread Tim Haynes
Sören Auer wrote: > Hi all, > > I tried the following code with both Virtuoso for Windows and Linux: > > $db=odbc_connect('virtuoso','dba','dba'); > $result = odbc_exec($db,'SELECT TOP 3 * FROM DB.DBA.SYS_USERS'); > print_r(odbc_result_all($result)); > > However, I always get the full result set

[Virtuoso-users] Problem with TOP queries

2007-10-04 Thread Sören Auer
Hi all, I tried the following code with both Virtuoso for Windows and Linux: $db=odbc_connect('virtuoso','dba','dba'); $result = odbc_exec($db,'SELECT TOP 3 * FROM DB.DBA.SYS_USERS'); print_r(odbc_result_all($result)); However, I always get the full result set and not just the top three as I wou