31 |
|
{$DEFINE WINDOWS} |
32 |
|
{$ENDIF} |
33 |
|
|
34 |
< |
{Create and Drop a Database} |
34 |
> |
{Test 1: Create and Drop a Database} |
35 |
|
{ |
36 |
|
This test first attempts to create a database without specifying any parameters |
37 |
|
(should fail). It then goes on to create and drop a database, print out the |
60 |
|
TTest1 = class(TFBTestBase) |
61 |
|
private |
62 |
|
procedure DoQuery(Attachment: IAttachment); |
63 |
– |
procedure WriteAttachmentInfo(Attachment: IAttachment); |
63 |
|
procedure GetFBVersion(Attachment: IAttachment); |
64 |
|
public |
65 |
|
function TestTitle: AnsiString; override; |
92 |
|
end; |
93 |
|
end; |
94 |
|
|
96 |
– |
procedure TTest1.WriteAttachmentInfo(Attachment: IAttachment); |
97 |
– |
begin |
98 |
– |
writeln(outfile,'DB Connect String = ',Attachment.GetConnectString); |
99 |
– |
writeln(outfile,'DB Charset ID = ',Attachment.GetDefaultCharSetID); |
100 |
– |
writeln(outfile,'DB SQL Dialect = ',Attachment.GetSQLDialect); |
101 |
– |
writeln(outfile,'DB Remote Protocol = ', Attachment.GetRemoteProtocol); |
102 |
– |
writeln(outfile,'DB ODS Major Version = ',Attachment.GetODSMajorVersion); |
103 |
– |
writeln(outfile,'DB ODS Minor Version = ',Attachment.GetODSMinorVersion); |
104 |
– |
writeln(outfile,'User Authentication Method = ',Attachment.GetAuthenticationMethod); |
105 |
– |
writeln(outfile,'Firebird Library Path = ',Attachment.getFirebirdAPI.GetFBLibrary.GetLibraryFilePath); |
106 |
– |
writeln(outfile,'DB Client Implementation Version = ',Attachment.getFirebirdAPI.GetImplementationVersion); |
107 |
– |
end; |
108 |
– |
|
95 |
|
procedure TTest1.GetFBVersion(Attachment: IAttachment); |
96 |
|
var Version: TStrings; |
97 |
|
i: integer; |