Search found 6 matches

by PetrHL
13.04.2014, 22:29
Forum: ZeosLib 7.1 stable Forum
Topic: Change database without disconnecting
Replies: 2
Views: 597

Re: Change database without disconnecting

Hello Jan,

nothing happens. It looks like the query went fine but no effect to any other queries.

Petr
by PetrHL
23.03.2014, 08:03
Forum: ZeosLib 7.1 stable Forum
Topic: Change database without disconnecting
Replies: 2
Views: 597

Change database without disconnecting

Hi, I use Lazarus and FreePascal under Ubuntu 12.04. Because of missing features (transaction support for MySQL) I decided to move to ZeosLib. So far so good but I've found something I don't know what to do. When I used internal FPC and Lazarus components, I could do something like this: q.SQL.Text ...
by PetrHL
15.11.2012, 11:49
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Insert into SQLite3 is very slow
Replies: 7
Views: 7583

if I try Q.Connection.AutoCommit := False and do Q.Connection.StartTransaction I get "error invalid operation in non AutoCommit mode" so I don't call StartTransaction when AutoCommit is False and call only Commit after all data are inserted. When AutoCommit is true, I can call Q.Connection...
by PetrHL
09.11.2012, 17:39
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Insert into SQLite3 is very slow
Replies: 7
Views: 7583

Hello Michael, thank you for your help. Maybe I've found a workaround. According to SQLite documentation, it waits after every query to full sync. So before insert of lots of records, it's better to turn off the sync and turn it on back after the operation. try Q.SQL.Text := 'PRAGMA synchronous=0'; ...
by PetrHL
06.11.2012, 11:14
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Insert into SQLite3 is very slow
Replies: 7
Views: 7583

Insert into SQLite3 is very slow

Hello, I'd like to insert a few records into SQLite3 database but it takes very long time. It seems it saves every record one by one because I can hear that my HDD works vey hard :). The code is: const C_INS = 'insert into nastdiety(stat,dieta) values(%s,%d)'; try try Q.Close; Q.Connection.StartTran...
by PetrHL
21.09.2012, 12:34
Forum: ZeosLib 7.0 Beta Forum
Topic: Widememo in dbEdit Delphi XE2, SQLite3
Replies: 3
Views: 3681

Widememo in dbEdit Delphi XE2, SQLite3

Hello,

I just downloaded from SVN (trunk) and installed zeos db components to Deplhi XE2. It works but all fields defined as TEXT in sqlite database has in dbeEdit fields "widememo" text and not the correct value. Anyone knows what could be wrong, please?

Thank you!

Petr