ZEOS 7 AND SQLITE3 DON'T POST DATA

Forum related to SQLite

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
mustdev
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 07.11.2005, 15:43

ZEOS 7 AND SQLITE3 DON'T POST DATA

Post by mustdev »

HI all

I have bizarre issue with zeos 7-sqlite3 and delphi 2009 :
I use TZTABLE to populate data, but i can't insert or update data, when i run the exe and add some data all show fine in data control, but when i close the exe all data inserted is lost.
i try to use start transact, commit but the same issue
so what is the solution ?
this is sql log
You remark last line the data is insert in the table,but all is lost when i shatdown this program

Code: Select all

2010-04-28 01:14:22 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('userprofile')
2010-04-28 01:27:03 cat: Connect, proto: sqlite-3, msg: CONNECT TO "./data/mustpost.db3" AS USER ""
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: BEGIN TRANSACTION
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: SELECT * FROM forum_link

2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('forum_link')
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: SELECT * FROM forum_categorie

2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('forum_categorie')
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: SELECT * FROM Post

2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('Post')
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: SELECT * FROM settings

2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('settings')
2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: SELECT * FROM userprofile

2010-04-28 01:27:03 cat: Execute, proto: sqlite-3, msg: PRAGMA  table_info('userprofile')
2010-04-28 01:27:33 cat: Execute, proto: sqlite-3, msg: [rainbow][bcolor=#FF4000]INSERT INTO userprofile (Id,UserLogin,UserPassword,UserEmail,Usersign,Usersignimag,Lastdatused,avatare,signate) VALUES (NULL,'mustdev','Pmma66','mustdev@menara.ma',NULL,NULL,NULL,NULL,NULL)
2010-04-28 01:27:34 cat: Execute, proto: sqlite-3, msg: COMMIT TRANSACTION[/bcolor][/rainbow]
thanks for any quick speed
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Reading this log I would say : impossible

But as I asume most users are sane, we'll have to search deeper. ;)

Have you tried to select the inserted line after the commit, but before the connection is closed?

Mark
Image
mustdev
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 07.11.2005, 15:43

Post by mustdev »

thanks for replay
and excuse me for my late to answer, yes i have tried this , and th inserted data show in program (grid and edit components for all this project i use registered last tms pack my customer like it) but when i close the program and lunch my sqlite admin program ( i use sqlite2009 pro and sqlitestudio-1.1.1) i find that all inserted data has disparate, also i have last sqlite library in my windows path, i spend this 4 day with this issue without any success,there is no idea about this issue, i don't like to change zeos for any other sqlite library, i use zeos in all my project with Mysql and i have no problem with it first time i use it for sqlite database.
thanks
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

es i have tried this , and the inserted data show in program
Does this mean 'Table.close;table.open' and then the data is still visible? So in the log after the commit a new select is executed and retrieves the inserted data?

In that case my only remaining idea is that the file consulted using 'sqlite2009 pro' is a different one as the one used by your program. Which is very possible as I see you're using a linux like path on windows and I don't know how that behaves exactly.

Do you have a simple sample project (source + sqlite dll) you can send me (or attach to this post)?

Mark
Image
Post Reply