mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 13:59:47 +02:00
* Fixed new test from r15300
git-svn-id: trunk@15301 -
This commit is contained in:
parent
a8ee8cdbb3
commit
c1cd8d04ba
@ -1597,12 +1597,15 @@ begin
|
||||
' NAME VARCHAR(50), ' +
|
||||
' PRIMARY KEY (ID1, ID2) ' +
|
||||
') ');
|
||||
|
||||
// Firebird/Interbase need a commit after a DDL statement. Not necessary for the other connections
|
||||
if SQLDbType=interbase then TSQLDBConnector(DBConnector).Transaction.CommitRetaining;
|
||||
|
||||
ds := TSQLDBConnector(DBConnector).Query;
|
||||
ds.sql.Text:='select * from FPDEV2';
|
||||
ds.Prepare;
|
||||
ds.ServerIndexDefs.Update;
|
||||
AssertEquals(1,ds.ServerIndexDefs.count);
|
||||
writeln(ds.ServerIndexDefs[0].Fields);
|
||||
AssertTrue(SameText('ID1;ID2',ds.ServerIndexDefs[0].Fields));
|
||||
Asserttrue(ds.ServerIndexDefs[0].Options=[ixPrimary,ixUnique]);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user