Browse Source

* Patch from Graeme Geldenhuys to set the default characterset in CreateDb, bug #13835

git-svn-id: trunk@13386 -
joost 16 years ago
parent
commit
735b0cd299
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-db/src/sqldb/interbase/ibconnection.pp

+ 2 - 0
packages/fcl-db/src/sqldb/interbase/ibconnection.pp

@@ -300,6 +300,8 @@ begin
   pagesize := params.Values['PAGE_SIZE'];
   if pagesize <> '' then
     CreateSQL := CreateSQL + ' PAGE_SIZE '+pagesize;
+  if CharSet <> '' then
+    CreateSQL := CreateSQL + ' DEFAULT CHARACTER SET ' + CharSet;
 
   if isc_dsql_execute_immediate(@FStatus[0],@ASQLDatabaseHandle,@ASQLTransactionHandle,length(CreateSQL),@CreateSQL[1],Dialect,nil) <> 0 then
     CheckError('CreateDB', FStatus);