SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[SA 7.1.166 Pro] - SQLite WITH statement

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[SA 7.1.166 Pro] - SQLite WITH statement
Author Message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post [SA 7.1.166 Pro] - SQLite WITH statement Reply with quote
SQL Editor properly reports that 3 rows were affected for the query below, however it fails to yield a result set (using SQLite3 ODBC Driver).
Code:


WITH re_num AS (
        SELECT
           
           vai.id_activity,vai.row_num               AS old_row_num
           ,(
               SELECT
                  count (1)
               FROM
                  v_activity_inventory AS vai2
               WHERE   1 = 1
                  AND   vai2.row_num <= vai.row_num
            )                    AS new_row_num
        FROM
           v_activity_inventory  AS vai
     )
     
     SELECT
        *
     FROM
        re_num;

Mon Sep 15, 2014 10:35 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Thank you very much. I have logged this issue. It looks like SQL Assistant's database interface handling interaction with SQLite doesn't detect the result set is coming back.
Mon Sep 15, 2014 11:52 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
This appears to be an issue in ODBC driver, not in SQL Assistant. Here is a copy of the response we got from ODBC driver author.

Quote:
Thanks for reporting this issue. The problem is that the current driver does not detect the new CTE syntax as a SELECT statement and therefore does not produce a result set since it thinks it is something like an INSERT/UPDATE/DELETE statement.

Will look into it but this will take some time.

BR,
Christian

Tue Sep 16, 2014 7:33 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
I suspected as much, thank you for confirmation. Are they going to get back to you when they fixed the issue?
Tue Sep 16, 2014 8:09 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
The ODBC driver developer notified us of the latest update fixing issues with CTE processing. It's a pre-lease version made available to us for testing and it seems to be working well. Please contact the author if you would like to try that update.
Wed Sep 17, 2014 7:44 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.