mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-06 15:07:27 +01:00
* Fixed mysql ftLargeIntField + enabled test
git-svn-id: trunk@9609 -
This commit is contained in:
parent
4b43848d66
commit
2cc3f2ebf3
@ -717,6 +717,7 @@ function TConnectionName.MySQLWriteData(AType: enum_field_types;ASize: Integer;
|
|||||||
|
|
||||||
var
|
var
|
||||||
VI: Integer;
|
VI: Integer;
|
||||||
|
VL: LargeInt;
|
||||||
VS: Smallint;
|
VS: Smallint;
|
||||||
VF: Double;
|
VF: Double;
|
||||||
VC: Currency;
|
VC: Currency;
|
||||||
@ -749,10 +750,10 @@ begin
|
|||||||
FIELD_TYPE_LONGLONG:
|
FIELD_TYPE_LONGLONG:
|
||||||
begin
|
begin
|
||||||
if (Src<>'') then
|
if (Src<>'') then
|
||||||
VI := StrToInt64(Src)
|
VL := StrToInt64(Src)
|
||||||
else
|
else
|
||||||
VI := 0;
|
VL := 0;
|
||||||
Move(VI, Dest^, SizeOf(LargeInt));
|
Move(VL, Dest^, SizeOf(LargeInt));
|
||||||
end;
|
end;
|
||||||
{$ifdef mysql50}
|
{$ifdef mysql50}
|
||||||
FIELD_TYPE_NEWDECIMAL,
|
FIELD_TYPE_NEWDECIMAL,
|
||||||
|
|||||||
@ -103,6 +103,8 @@ begin
|
|||||||
if SQLDbType = MYSQL40 then Fconnection := tMySQL40Connection.Create(nil);
|
if SQLDbType = MYSQL40 then Fconnection := tMySQL40Connection.Create(nil);
|
||||||
if SQLDbType = MYSQL41 then Fconnection := tMySQL41Connection.Create(nil);
|
if SQLDbType = MYSQL41 then Fconnection := tMySQL41Connection.Create(nil);
|
||||||
if SQLDbType = MYSQL50 then Fconnection := tMySQL50Connection.Create(nil);
|
if SQLDbType = MYSQL50 then Fconnection := tMySQL50Connection.Create(nil);
|
||||||
|
if SQLDbType in MySQLdbTypes then
|
||||||
|
FieldtypeDefinitions[ftLargeint] := 'BIGINT';
|
||||||
if SQLDbType = sqlite3 then
|
if SQLDbType = sqlite3 then
|
||||||
begin
|
begin
|
||||||
Fconnection := TSQLite3Connection.Create(nil);
|
Fconnection := TSQLite3Connection.Create(nil);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user