sqlite3 problem "no such table"
Posted: Fri Feb 19, 2010 1:08 pm
Hi
I am learning NewLisp: having imported data (csv) into Sqlite3, I can work fine within the Firefox and Sqlite3Explorer tools. However from within Newlisp IDE, the error reported is "no such table: MonFriDown". As I say, the table is there, and usable: in NewLisp, database opens ok. Code follows:
Does anyone have similar problems with SQLite3, or is there something wrong with my code?
regards
I am learning NewLisp: having imported data (csv) into Sqlite3, I can work fine within the Firefox and Sqlite3Explorer tools. However from within Newlisp IDE, the error reported is "no such table: MonFriDown". As I say, the table is there, and usable: in NewLisp, database opens ok. Code follows:
Code: Select all
(load (append (env "NEWLISPDIR") "\\modules\\sqlite3.lsp"))
(if (sql3:open "SimonsTownLine.sqlite3")
(println "database opened/created")
(println "problem: " (sql3:error)))
(define (query sql-text)
(set 'sqlarray (sql3:sql sql-text)) ; results of query
(if sqlarray
(map println sqlarray)
(println (sql3:error) " query problem ")))
(query "select * from MonFriDown")
(sql3:error)
(sql3:close)
regards