Search found 93 matches

by guidoaerts
11.09.2010, 10:48
Forum: ZeosLib 7.0 Beta Forum
Topic: Running the zeoslib test suite.
Replies: 8
Views: 1315

update
I downloaded snapshot ZEOSLIB_TRUNK_REV803.zip.
Here I found a lot of reading stuff, which, I guess, I'd better work through. This is going to keep me busy for a little while.
Guido
by guidoaerts
06.09.2010, 08:48
Forum: ZeosLib 7.0 Beta Forum
Topic: Running the zeoslib test suite.
Replies: 8
Views: 1315

Ok, that's a good start. Especially step 0. Now I know where to start. Thanks.
Guido
by guidoaerts
03.09.2010, 10:40
Forum: SQLite
Topic: [patch_done] Very slowly post data (BLOB)
Replies: 12
Views: 2508

would this work?

for I := 0 to SrcLength -1 do
begin
shx := IntToHex( ord(SrcBuffer),2 );
result[1+i*2] := shx[1];
result[1+i*2] := shx[2];
end;
// result := 'x'+QuotedStr(result); // since result is Hex string
end;
by guidoaerts
03.09.2010, 09:33
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

Mark, I really want to contribute. But there is no /test directory. I feel like annoying. Maybe we should first of all set up a clear HOW-TO for newbies like me to get into the testing. Once you got me that far, I am willing to write that how-to. i.e. : windows, lazarus-fpc, firebird. (I could, for ...
by guidoaerts
30.08.2010, 17:26
Forum: Firebird
Topic: INSERT with RETURNING
Replies: 30
Views: 15464

Mark, It seems to be not that easy. I set up lazarus on another xp pc, installed zeos 6.6.6 and tried to run th ZTestAll project. Failed because it needs presence of all the testunits : ZTestSysUtils, ZTestVariant, ZTestTokenizer, ZTestList, ZTestFramework, ZTestExprToken, ZTestExpression, //parsesq...
by guidoaerts
30.08.2010, 08:12
Forum: ZeosLib 7.0 Beta Forum
Topic: "Not a Number" is read as "0"
Replies: 6
Views: 711

afaik, the sql standard does not allow for non-values, they should raise an error.
by guidoaerts
18.08.2010, 14:09
Forum: 6.6 - stable
Topic: IndexFieldName,SequenceField,Sort Field
Replies: 4
Views: 6811

you can use zquery, make op your sql in any way you want, filter and group by and whatever; and then you can sort the resultset in the component itself once more and re-sort again;
do you still want more?
Guido
by guidoaerts
18.08.2010, 10:41
Forum: 6.6 - stable
Topic: IndexFieldName,SequenceField,Sort Field
Replies: 4
Views: 6811

if you have fields on which you have an secondary index, you can use those for indexfield; sequencefield is for a ( for example :autoincrement) field on which you have a sequence (trigger for autoincrement), so zeos knows how to handle it; Sort fields is the fields on which to sort the data if you w...
by guidoaerts
17.08.2010, 11:04
Forum: 6.6 - stable
Topic: Acess a record anywhere
Replies: 3
Views: 548

I didn't try this, but you could override the default fetch size, by setting the statement.fetchsize to a small value. Then you can pos the cursor anywhere, but if you do it by scrolling your dbtreeview window it will run through the data anyway. and maybe take a look at : http://zeos.firmos.at/view...
by guidoaerts
16.08.2010, 14:38
Forum: 6.6 - stable
Topic: Acess a record anywhere
Replies: 3
Views: 548

just do a separate query :
select * from foo where recno = 6000000;

Guido
by guidoaerts
16.08.2010, 14:33
Forum: 6.6 - stable
Topic: how to use TZQuery with multi statement sql string
Replies: 4
Views: 1080

Or you could use a TZSqlProcessor to execute the statements in a script...
Guido
by guidoaerts
27.07.2010, 10:41
Forum: ZeosLib 7.0 Beta Forum
Topic: "Not a Number" is read as "0"
Replies: 6
Views: 711

from the postgresql doc's : <quote> In addition to ordinary numeric values, the numeric type allows the special value NaN, meaning "not-a-number". Any operation on NaN yields another NaN. When writing this value as a constant in a SQL command, you must put quotes around it, for example UPD...
by guidoaerts
22.07.2010, 18:23
Forum: 6.6 - stable
Topic: Show ProgressBar with backup & restore for Firebird data
Replies: 1
Views: 717

just an idea :
why not read the output, and step up your progressbar with each CR/LF?

Guido
by guidoaerts
19.07.2010, 12:33
Forum: ZeosLib 7.0 Beta Forum
Topic: ParamByName in MySql5
Replies: 6
Views: 808

This works with Firebird...

begin
TBlobField(fieldbyname('foto')).Clear;
TBlobField(fieldbyname('foto')).LoadFromFile(OpenPictureDialog.FileName);
end;

Guido