Search found 37 matches

by dhongu
18.09.2007, 12:56
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: error TZReadOnlyQuery with MYsql Variables in Delphi5
Replies: 4
Views: 3914

SELECT @n ::= @n+1 AS rownum, thing, arms, legs FROM limbs

or set checkparam = false in property of component (TZReadOnlyQuery)
by dhongu
09.09.2007, 18:45
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Range check error
Replies: 0
Views: 822

Range check error

I have a very strange problem with the following SQL

SELECT @a as a, @b as b, @c as c, @d as d, @e as e;

If all valiables is null then is generated error: "Range check error".


But following SQL work fine.

SELECT @a as a, @b as b, @c as c, @d as d.



Delphi 7, Mysql 5.0.45
by dhongu
07.07.2007, 16:33
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL+Zeos. How control errors?
Replies: 6
Views: 2254

I have some problem with UDF for raise error. In unit ZDbcMySqlUtils in procedure CheckMySQLError replace And with OR [syntax="Delphi"] procedure CheckMySQLError(PlainDriver: IZMySQLPlainDriver; Handle: PZMySQLConnect; LogCategory: TZLoggingCategory; const LogMessage: string); var ErrorMes...
by dhongu
05.03.2007, 12:10
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Required is true for calculate field?
Replies: 3
Views: 1138

?
by dhongu
29.01.2007, 09:22
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: autocommit
Replies: 4
Views: 1197

Always was without SET but function never call. Old procedure not call FPlaindriver.SetAutocommit [syntax="delphi"] procedure TZMySQLConnection.SetAutoCommit(AutoCommit: Boolean); var SQL: PChar; begin if AutoCommit <> Self.AutoCommit then begin inherited SetAutoCommit(AutoCommit); if not ...
by dhongu
29.01.2007, 05:34
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: autocommit
Replies: 4
Views: 1197

autocommit

In unit ZPlainMySQLDriver.pas function "TZMySQL40PlainDriver.SetAutocommit" is incorrect [syntax="delphi"] function TZMySQL40PlainDriver.SetAutocommit(Handle: PZMySQLConnect; mode: Boolean): Boolean; var query: AnsiString; testResult: Integer; begin if (mode = True) then query :=...
by dhongu
16.01.2007, 15:27
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How to get value from stored procedure,zeos+mysql5+delphi7 ?
Replies: 2
Views: 1047

[syntax="delphi"]
procedure TForm1.Button1Click(Sender: TObject);
var rezultat:double;
begin
zquery1.Active:=false;
zquery1.SQL.text:='call kasa.suma(5,@izlaz);';
zquery1.ExecSQL;

zquery1.SQL.text:='select @izlaz;';
zquery1.open;
rezultat:=zquery1.Fields[0].Asfloat;
end;
[/syntax]
by dhongu
12.10.2006, 19:18
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: select @a := field from table; and Mysql and TZQuery
Replies: 7
Views: 1711

set ParamCheck with false
by dhongu
06.10.2006, 16:42
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Missing component icons
Replies: 3
Views: 1218

Copy file name ZComponent.res to file name ZComponentDesign.res.
by dhongu
18.09.2006, 13:46
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: MySQL Storedprocedures
Replies: 16
Views: 4186

ZStoredProc is not implemented for mysql. If you wish to call stored procedure try to ZSQLProcessor. [syntax="delphi"] ZSQLProcessor1.Script.text:= 'Call Newdocument( :CaseRef , :UserID )'; ZSQLProcessor1.ParamCheck:=true; ZSQLProcessor1.ParamByName('CaseRef').AsString := Edit1.Text; ZSQLP...
by dhongu
18.09.2006, 09:40
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Required is true for calculate field?
Replies: 3
Views: 1138

Required is true for calculate field?

I have mysql table [syntax="sql"] CREATE TABLE `tabel1` ( `ID` int(11) NOT NULL auto_increment, `Val` int(11) default NULL, `Description` varchar(20) default NULL, PRIMARY KEY (`ID`) ) TYPE=MyISAM; [/syntax] and code: [syntax="delphi"] procedure TForm1.Button1Click(Sender: TObjec...
by dhongu
13.09.2006, 18:09
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: RollBack and Mysql y cant make it work...
Replies: 7
Views: 1616

In my code I non't use StartTransaction.
For begin transaction call function Commit.
by dhongu
13.09.2006, 14:01
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: RollBack and Mysql y cant make it work...
Replies: 7
Views: 1616

For transaction you most have autocomit = false, and call manually Commit and Rollback
In mysql transaction work only innodb tabele.
by dhongu
13.09.2006, 13:52
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Problems with Codepage
Replies: 6
Views: 2561

in my.ini set

#Set the default character set.
default_character_set=latin1

I try with (ÄÖÜ) and work.
by dhongu
12.09.2006, 17:03
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Runtime Error 216 on Program Shutdown on Delphi 2006 (10)
Replies: 37
Views: 13282

MZmuda , All subfolders for folder ZeosLib C:\Program Files\Borland\BDS\4.0\Third_Party_Components\ZeosLib\component C:\Program Files\Borland\BDS\4.0\Third_Party_Components\ZeosLib\core C:\Program Files\Borland\BDS\4.0\Third_Party_Components\ZeosLib\dbc C:\Program Files\Borland\BDS\4.0\Third_Party_...