Search found 7 matches

by maciejkaczkowski
29.05.2010, 06:42
Forum: 6.6 - stable
Topic: Problem with sqlite blob encoding
Replies: 2
Views: 491

What does zeoslib make from your insert statement when sending it to SQLite? You can use a TZSQLMonitor to find that out. not mentioned before that I use TZSQLProcessor to handle instert statement. Seems to me the error comes from SQLite itself. because of a syntax error? I've solved that issues us...
by maciejkaczkowski
23.05.2010, 18:54
Forum: 6.6 - stable
Topic: Problem with sqlite blob encoding
Replies: 2
Views: 491

Problem with sqlite blob encoding

Based on documentaction http://www.sqlite.org/datatype3.html SQLite allow to insert blob file using hex encoding (x character before string), i.e.: INSERT INTO t1 VALUES(x'0500', x'0500', x'0500', x'0500', x'0500'); after executing above example i've got error unrecognized token: x'0500' is there an...
by maciejkaczkowski
06.01.2007, 12:27
Forum: Firebird
Topic: Multiple queries in one transaction
Replies: 4
Views: 2483

:thanks:
Now everything works fine.
by maciejkaczkowski
02.01.2007, 13:43
Forum: Firebird
Topic: Multiple queries in one transaction
Replies: 4
Views: 2483

Multiple queries in one transaction

Is possible to put few inserts and updates in one transaction. SQLite code looks like this: with Query.SQL do begin Add('INSERT INTO abc VALUES (''aa'');'); Add('INSERT INTO abc VALUES (''bb'');'); Add('INSERT INTO abc VALUES (''cc'');'); Add('COMMIT;'); end; Query.ExecSQL; The same code doesn't wor...
by maciejkaczkowski
11.06.2006, 19:04
Forum: SQLite
Topic: Problem with nonstandard field
Replies: 0
Views: 1463

Problem with nonstandard field

Problem appears when I use internal functions or expressions and result is a number with decimal separator: SELECT SUM(1.0) fld or SELECT 1.0+2.0 fld After executing I use: ds.FieldByName('fld').AsFloat i've get "3.0 is not a valid floating point value" and here is a bug, in some country's...
by maciejkaczkowski
25.03.2006, 12:32
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: SQLite3
Replies: 8
Views: 2214

I found easier way to show this problem (it also appears in 3.x)

Code: Select all

select * from sqlite_sequence;
by maciejkaczkowski
03.03.2006, 09:04
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: SQLite3
Replies: 8
Views: 2214

Thank you very much. btw I found a little problem when I select a view from database example: CREATE VIEW vabonament AS SELECT idabonamentu, idpozycji, idumowy, datanaliczen, tryb, ilosc, liczbarat, CASE WHEN tryb IN (1, 2) THEN (SELECT usluga FROM uslugi WHERE iduslugi=(SELECT iduslugi FROM cennik_...