Search found 20 matches

by designshouse
27.01.2010, 18:39
Forum: 6.6 - stable
Topic: Management of the database exception
Replies: 2
Views: 697

try to add this unit ZDbcIntfs
by designshouse
20.10.2009, 22:51
Forum: 6.6 - stable
Topic: ZQuery.MacroByName()
Replies: 9
Views: 3062

hi

i didnt test it but maybe this may work

query.Sql.Add('SELECT * FROM people');
query.Sql.Add('WHERE age > 30');
query.Sql.Add(':macro ');

if z then
query.ParamByName('macro').AsString := 'AND gender = ''M'''
else
query.ParamByName('macro').AsString := '';
by designshouse
10.07.2009, 19:41
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Insert and Select in one Transaction: ADO - MS SQL
Replies: 4
Views: 2239

try to use QyZEOS->SQL->Text->Clear before SELECT query

Code: Select all

QyZEOS->ExecSQL();
QyZEOS->Close();
QyZEOS->SQL->Text->Clear;
QyZEOS->SQL->Text = "SELECT * FROM table1";
by designshouse
01.03.2009, 17:27
Forum: ZDBC (ZEOS Database Connectivity)
Topic: How to detect connection lost ?
Replies: 9
Views: 10571

i know this metod but this is not what i looking for.
i can call ZConnection.PingServer before every query but Is there a way to detect connection lost without test it before each SQL command I run ?
by designshouse
01.03.2009, 14:56
Forum: ZDBC (ZEOS Database Connectivity)
Topic: How to detect connection lost ?
Replies: 9
Views: 10571

I use MySQL. how can i raise and catch this exception?
i know how to handle exceptions for query but not for connection

and sorry for my english ;-)
by designshouse
27.02.2009, 14:56
Forum: ZDBC (ZEOS Database Connectivity)
Topic: How to detect connection lost ?
Replies: 9
Views: 10571

i also need to solve this.
or is there posibility to catch this error and print my own error dialog
like "Database server error, please call your administrator"?

can somebody help?
by designshouse
24.10.2008, 23:08
Forum: MySQL
Topic: Data from insert
Replies: 5
Views: 849

try this with ZQUERY1 do begin SQL.Clear; SQL.Add('INSERT INTO table_profession_rubric (key_profession, key_rubric) '); SQL.Add('VALUES (:arg_key_profession, :arg_key_rubric); '); ParamByName('arg_key_profession')... ParamByName('arg_key_profession')... ExecSQL; Close; SQL.Clear; SQL.Add('SELECT LAS...
by designshouse
04.07.2007, 12:29
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL+Zeos. How control errors?
Replies: 6
Views: 2142

uses ZDbcIntfs; try with ZQUERY1 do begin SQL.Clear; SQL.Add('DELETE FROM books WHERE id_book=:Par '); ParamByName('Par').AsInteger := DBGrid1.DataSource.DataSet.FieldByName('id_book').AsInteger; ExecSQL; Close; end; except on E: EZSQLException do if E.ErrorCode = 1451 then begin Application.Message...
by designshouse
20.02.2007, 21:09
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Low speed Locate in TZReadOnlyQuery
Replies: 1
Views: 977

I have also this problem. TZQuery is mutch faster but if I set ReadOnly=True it is slow as a TZReadOnlyQuery.
Sorry for my english
by designshouse
28.09.2006, 07:36
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Zeos Lib Stable version
Replies: 7
Views: 2001

Yes. i have the same problem with winrar. now i use total commander to extract it without problems.

P.S. Sorry for my english
by designshouse
07.09.2006, 07:48
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Firebird Embedded Database on CD-ROM
Replies: 4
Views: 1851

Thank you for your quick answer.

I think I am stupid because I can not understand this source code.
Please can you send me a demo application?
My email : is@tsu.sk

P.S. sorry for my english
by designshouse
06.09.2006, 14:23
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Firebird Embedded Database on CD-ROM
Replies: 4
Views: 1851

I have the same problem. Did you solve it?
by designshouse
07.07.2006, 11:57
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: two connections, two different fb srv, one app dir
Replies: 8
Views: 2413

"Firebird is completely free of any registration, licensing or deployment fees. It may be deployed freely for use with any third-party software, whether commercial or not." - www.firebirdsql.org
by designshouse
29.06.2006, 13:57
Forum: MySQL
Topic: Help connect zeos to embedded mysql server
Replies: 26
Views: 11492

Specifically: * MySQL is free use for those who are 100% GPL. If your application is licensed under GPL or compatible OSI license approved by MySQL AB, you are free to ship any GPL software of MySQL AB with your application ('application' means any type of software application, system, tool or utili...