Browse Source

fcl-db: odbc: add to ConnOptions +sqSupportEmptyDatabaseName because TODBCConnection does not require it and used empty with TSQLConnector raises unwanted exception in DoInternalConnect.

git-svn-id: trunk@34605 -
lacak 8 years ago
parent
commit
59246b402c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqldb/odbc/odbcconn.pas

+ 1 - 1
packages/fcl-db/src/sqldb/odbc/odbcconn.pas

@@ -298,7 +298,7 @@ end;
 constructor TODBCConnection.Create(AOwner: TComponent);
 constructor TODBCConnection.Create(AOwner: TComponent);
 begin
 begin
   inherited Create(AOwner);
   inherited Create(AOwner);
-  FConnOptions := FConnOptions + [sqEscapeRepeat] + [sqEscapeSlash];
+  FConnOptions := FConnOptions + [sqSupportEmptyDatabaseName, sqEscapeRepeat, sqEscapeSlash];
 end;
 end;
 
 
 function TODBCConnection.StrToStatementType(s : string) : TStatementType;
 function TODBCConnection.StrToStatementType(s : string) : TStatementType;