mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 16:39:36 +01:00
* Correct a test for mysql version 5 (server)
git-svn-id: trunk@10821 -
This commit is contained in:
parent
18dda56ea5
commit
3120184b2a
@ -12,7 +12,7 @@ uses
|
||||
DigestTestReport,
|
||||
toolsunit,
|
||||
// Units wich contains the tests
|
||||
testbasics, testfieldtypes, TestDatasources, testdbbasics;
|
||||
{ testbasics, testfieldtypes, TestDatasources,} testdbbasics;
|
||||
|
||||
var
|
||||
FXMLResultsWriter: TXMLResultsWriter;
|
||||
|
||||
@ -292,8 +292,8 @@ begin
|
||||
Open;
|
||||
for i := 0 to testValuesCount-1 do
|
||||
begin
|
||||
if (SQLDbType in MySQLdbTypes) then
|
||||
AssertEquals(TrimRight(testValues[i]),fields[0].AsString) // MySQL automatically trims strings
|
||||
if (SQLDbType in [mysql40,mysql41]) then
|
||||
AssertEquals(TrimRight(testValues[i]),fields[0].AsString) // MySQL < 5.0.3 automatically trims strings
|
||||
else
|
||||
AssertEquals(testValues[i],fields[0].AsString);
|
||||
Next;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user