Firebird: No connection charset when creating a new database

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Firebird: No connection charset when creating a new database

Post by marsupilami »

Hello :)

when creating a new database in Firebird with the parameter createNewDatabase the resulting connection will not be connected using the specified client chearacter set but it will use the character set NONE instead. This worked correctly in Zeos 6, which connected using the application specified client character set.
The reason for this is that Zeos 7.1 uses the connection that is created by the CreateNewDatabase procedure in ZDbcInterbase6.pas, which is created without a connection character set instead of disconnecting that connection and creating a new one where it is possible to specify the character set to use. Zeos 6 did exactly that. So the solution was simple: Reintroduce the code from Zeos 6.
I attached a patch that works for Zeos 7.1 and will supply another Patch for Zeos 7.2 if necessary later on.
With best regards,

Jan
You do not have the required permissions to view the files attached to this post.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Firebird: No connection charset when creating a new database

Post by marsupilami »

This is the same patch for Zeos 7.2
You do not have the required permissions to view the files attached to this post.
Post Reply