Search found 11 matches

by tatamata
19.09.2008, 13:18
Forum: Firebird
Topic: Multiple INSERT INTO
Replies: 1
Views: 498

Multiple INSERT INTO

Hi! 1. Is it possible to execute multiple INSERT INTO table (fields) VALUES (..), using Zeoslib and how? 2. I have a procedure which dynamically creates SQL string "INSERT INTO" and executes it for every row seperately. If I generate SQL strings first for all rows and the execute multiple ...
by tatamata
11.02.2008, 11:42
Forum: Feature Requests
Topic: SQLQuery for different TDataSet descendants, such as TDbf
Replies: 1
Views: 1722

SQLQuery for different TDataSet descendants, such as TDbf

Your ZeosLib DBO Version: trunk The IDE you are using: Lazarus Version (and maybe patchlevel) of the IDE: The database you are using: Firebird Version of the database: Used protocol: [hr] Error description and post Hello. Is there a way to use Zeoslib ZQuery component for querying different dataset...
by tatamata
16.10.2007, 19:49
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Problems with ZUpdateSQL and Lazarus
Replies: 3
Views: 1400

Hello, mdaems! Thanks for good will, but it is not necessary, because I received the answer that solved the problem, from a local Croatian Delphi newsgroup. The solution is quite simple: I just had to remove all "IS NULL" comparisons in WHERE clause of ModifySQL. Therefore, the new ModifyS...
by tatamata
15.10.2007, 17:44
Forum: Firebird
Topic: Problems with ZUpdateSQL and Lazarus
Replies: 0
Views: 1202

Problems with ZUpdateSQL and Lazarus

Hello, Lazarus, Zeoslib, Firebird. I was trying to make a ZQuery updateable, by providing a ZUpdateSQL. Unfortunately, it doesn't work in my case. When trying to update a row, I get the following error: “SQL error. Dynamic SQL error SQL error code= -804 Data type unkown. An error was found in the ap...
by tatamata
15.10.2007, 17:41
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Problems with ZUpdateSQL and Lazarus
Replies: 3
Views: 1400

Problems with ZUpdateSQL and Lazarus

Hello, Lazarus, Zeoslib, Firebird. I was trying to make a ZQuery updateable, by providing a ZUpdateSQL. Unfortunately, it doesn't work in my case. When trying to update a row, I get the following error: “SQL error. Dynamic SQL error SQL error code= -804 Data type unkown. An error was found in the ap...
by tatamata
17.07.2007, 10:01
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Batch insert/update
Replies: 5
Views: 3288

Hi!
1. What is the difference between ApplyUpdates and CommitUpdates?
2. If cahced updates inserts row by row, is there any other way to insert rows in a batch?

Regards,

Zlatko
by tatamata
13.07.2007, 13:03
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Batch insert/update
Replies: 5
Views: 3288

Hi! In fact, I was trying to batch insert data from a .csv file to a PostgreSQL table, by looping through both datasets and appending rows from .csv file to PostgreSQL table. The following code works: procedure TForm1.ButtonImportOrdersClick(Sender: TObject); begin //Start transaction? //ZConnection...
by tatamata
12.07.2007, 22:04
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Batch insert/update
Replies: 5
Views: 3288

Batch insert/update

Hello.
Could someone point me to direction how to insert many records in one operation (batch insert) to PostgreSQL, using Lazarus and Zeos?
I would appreciate an example.
Thanks.
by tatamata
15.06.2007, 11:21
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Goto and Find functions?
Replies: 4
Views: 1689

Thanks.
Anyway, Locate is just good enough for most purposes, I think.

Regards,

Zlatko
by tatamata
12.06.2007, 18:24
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Goto and Find functions?
Replies: 4
Views: 1689

Goto and Find functions?

Lazarus+Zeos+PostgreSQL.
It seems that I can't use SetKey, GotoKey, GotoNearest; FindKey, FindNearest in for searching values in a table?
Are there alternative methods for performing searches in a TZTable?
Thanks,

Zlatko
by tatamata
11.06.2007, 12:43
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: 0000045: LAZARUS - Unit1.pas(9,3) Fatal: Can't find unit ZCo
Replies: 1
Views: 764

0000045: LAZARUS - Unit1.pas(9,3) Fatal: Can't find unit ZCo

I installed Zeos 6.6.1 Beta in Lazarus 0.9.22 (FPC 2.0.4), on Windows XP and successfully connected to PostgreSQL in design time. I got results in DBGrid successfully. But, when I try to compile the project I get the following error: "Unit1.pas(9,3) Fatal: Can't find unit ZConnection", so ...