Hellow everyone:
I encountered an error when Postgresql in connection with Lazarus, as follows.
My environment is window xp Chinese , the installation of the Lazzrus 0.924 and Postgresql 8.3 . Lazarus can run and compile unit, the Postgresql can use pgadmin III visit. I created an data table "xiang" in the default database "postgres", including Chinese and English characters, Encoded by the uft8. and then copy the libpq.dll and other files to the Windows system directory. Next steps are:
1, Lazarus creat a new form;
2, placing a TPQconnection components to the form; 3, setting the component attributes. For example:
Hostname = localhost
DatabaseName = postgres
UserName = postgres
Password = 1234
Name = PQConnection1
Params = "select * from xiang"
4, I think should now be able to connect to database, so I put the value of the "Connected" from False to True, however, appeared error dialog:
------------------------------------------------------ error?
PQConnection1 : Connection to database failed (PostgreSQL: missing "=" after "select" in connection info string )
OK
------------------------------------------------------
I tested for a long time, including the Lazarus of 0.925 and zero 6.6.2rc, but have failed again and again, help!
