[Sqlrelay-discussion] Testing sqlrelay's drop-in replacement libraries on Debian Wheezy
Brought to you by:
mused
From: Petros M. <ern...@ya...> - 2013-01-18 17:23:12
|
I' ve tested sqlrelay's drop-in replacement libraries for MySQL and PostgreSQL on Debian Wheezy (x86_64). The drop-in for MySQL does not seem to work. It just hangs when trying to connect with the mysql client program. It asks for password and after entering it, it freezes without ever giving back a mysql prompt. Maybe this is related to the fact that Debian Wheezy comes with mysql 5.5, but sqlrelay provides libraries up to 5.1? If this is not relevant, I would be glad to do any tests needed to narrow down the possible causes of the problem. The drop-in replacement library for PostgreSQL works when using the psql client program. However, it is not usable if trying to connect with psycopg2, the most popular library to interface with postgres from python. In particular, psycopg2 checks for the protocol version of the connection and if it is not 3, it exits. Maybe sqlrelay's implementation of postgres api does not support protocol version requests. Dave, if that is the case, would it be easy to include support for this type of requests in a following release of sqlrelay? |