2
0
Эх сурвалжийг харах

* Possibility to specify character set in connection dialog

git-svn-id: trunk@13339 -
michael 16 жил өмнө
parent
commit
c7ca0f8b0f

+ 2 - 0
packages/fcl-db/src/datadict/fpddsqldb.pp

@@ -57,6 +57,7 @@ Const
   KeyUserName     = 'User';
   KeyUserName     = 'User';
   KeyPassword     = 'Password';
   KeyPassword     = 'Password';
   KeyEncode       = 'Trivial';
   KeyEncode       = 'Trivial';
+  KeyCharset      = 'Charset';
 
 
 implementation
 implementation
 
 
@@ -105,6 +106,7 @@ begin
     FConn.Password:=XorDecode(KeyEncode,L.Values[KeyPassword]);
     FConn.Password:=XorDecode(KeyEncode,L.Values[KeyPassword]);
     FConn.LoginPrompt:=False;
     FConn.LoginPrompt:=False;
     FConn.Connected:=True;
     FConn.Connected:=True;
+    FConn.CharSet:=L.Values[KeyCharset];
     FConnected:=True;
     FConnected:=True;
     FConnectString:=AConnectString;
     FConnectString:=AConnectString;
     Result:=True;
     Result:=True;