tpgconnection Unicode Problem.
I use this for the tpgconnection's database property like this:
//also note the connection component at this time cannot handle
//connection param names like database that have upper case chars
//hence the manual qouting using the format function.
then the following error is raised:
First chance exception at $7D4E2366. Exception class EPgError with message 'database "??????" does not exist'. Process pg_lightning_admin.exe (3988)
UseUnicode is set to true and the database does exist, it was created like this:
create database "Россия";
I also have to mention again that the tpgconnection component has a buge because it is not qouting the connection param names, so if you create a database like this:
create database "MyDatabase";
And then do:
You will get this error:
First chance exception at $7D4E2366. Exception class EPgError with message 'database "mydatabase" does not exist'. Process pg_lightning_admin.exe (3988)
This happens because PGSQL lowercases everything sent to it at the server level, now if I do this:
Then I don't get the error.
The solution is to either simply qoute all the connection names like databasename, username,password etc. The qouting overrides the server automaticly lower casing everthing, or add a option like in the query and table components to Qoute Names.