Search found 93 matches

by guidoaerts
08.07.2010, 13:39
Forum: PostgreSQL
Topic: Correct way to insert into two tables (in TZUpdateS
Replies: 4
Views: 1864

insert into B(id, datafield1, datafield2) values (default,value1,value2) RETURNING id; then use the value of id to insert into AB example from postgresql manual: " Insert a single row into table distributors, returning the sequence number generated by the DEFAULT clause: INSERT INTO distributor...
by guidoaerts
07.07.2010, 10:18
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

capt_kirk, Your sql is ok, it will return a row with two values. Normally, when you use 'open' zeos will fetch the resultset and define the fieldtypes. Now you will have to do it yourself. But you know what you asked for, isn't it? Use the appropriate GetFunction (GetInt, GetString, Getlong...) with...
by guidoaerts
05.07.2010, 10:35
Forum: Firebird
Topic: Slow First Query
Replies: 7
Views: 1396

I have no experience with "FOSNOMETA", because so far I didn't have problems with slow querys.
Guido
by guidoaerts
05.07.2010, 10:24
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

capt_kirk,
The returning clause is not supported by zeos. However, you can make the change I proposed higher in this thread and use the command ExecSQL, in stead of Open.

Guido
by guidoaerts
29.06.2010, 09:01
Forum: Firebird
Topic: Slow First Query
Replies: 7
Views: 1396

connecting : local pc : 31-60 msec, lan : 31-46 msec, wan : 230-600 msec first query: local pc : 31-46 msec, lan :61 msec, wan : 203-264msec second query: local pc : 16 msec, lan : 31 msec, wan : 78-94 msec It is a small table, 250 rows, selecting 4 colums into a dbgrid with a TZquery. (maybe there ...
by guidoaerts
28.06.2010, 10:33
Forum: Firebird
Topic: Slow First Query
Replies: 7
Views: 1396

I have not yet timed my WAN sql's , but i am surely gonna do that. I will get back with my results.
Guido
by guidoaerts
25.06.2010, 18:08
Forum: Firebird
Topic: Slow First Query
Replies: 7
Views: 1396

I have no idea, but,
what do you get when you start timing after
FetchRow := 30;
just before
Open;
?
Guido
by guidoaerts
23.06.2010, 08:07
Forum: Firebird
Topic: No exception is fired for violations of primary key or fk?
Replies: 2
Views: 488

I think it is impossible to execute the sql's the way you show them, because of the way you're quoting and because you don't name the table. Please show us the exact code. Thank you.
Guido
by guidoaerts
11.06.2010, 08:30
Forum: Firebird
Topic: Creating dataset field URGENT
Replies: 3
Views: 511

something like:

zquery.sql.clear;
zquery.sql.add('ALTER TABLE COUNTRY ADD CAPITAL VARCHAR(25)');
zquery.execsql;

guido
by guidoaerts
21.05.2010, 10:52
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

silvioprog,
yes, your remark was good, but the translation was confusing.
guido
by guidoaerts
19.05.2010, 14:13
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

christensen, you should, in your sql string use two single quotes in stead of one double quote around your string values ZQuery1.SQL.Add('update test set name="BlaBla” where id=1'); should be ZQuery1.SQL.Add('update test set name=''BlaBla'' where id=1'); ZQuery1.SQL.Add('insert into test(ID, NA...
by guidoaerts
19.05.2010, 08:30
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

NAMES e um palavra reservada do firebird, não NAME
o link dos docs do fb fale de ' e '' e " e como usar
in the code examples, that christensen gave, the quotes are represented by ascii 221 or ascii 222
by guidoaerts
19.05.2010, 08:18
Forum: 6.6 - stable
Topic: Ver 6.6.6 stable postgres and UTF8
Replies: 9
Views: 1151

at least I think it's working, I have it up and running. had some troubles getting it on the rails (http://zeos.firmos.at/viewtopic.php?t=2779), but up to now it seems ok. for now just running on the xp pc on which i work, might fail when distributing. will keep you posted. take a look here : http:/...
by guidoaerts
18.05.2010, 18:35
Forum: Firebird
Topic: Query problems Zeos 6.6.6, Lazarus 0.9.28.2b & Firebird
Replies: 16
Views: 2293

I know NAMES is a reserved word in firebird, but what is a primitive type?
guido
about strings and quotes in firebird, read this :
http://www.firebirdsql.org/manual/qsg10 ... 10-strings
and then there is the extra caveat of quoted string in a string..
by guidoaerts
18.05.2010, 10:36
Forum: 6.6 - stable
Topic: Ver 6.6.6 stable postgres and UTF8
Replies: 9
Views: 1151

utf8 works with zeos6.6.5-stable, firebird 2.1 and lazarus0.9.26.2