xp-framework/xp-framework — pull request #82 by Stormwind (2011-11-15 13:30:14+00:00)
Title: Bugfixes for Mysqlx

Hi,

I've created two bugfixes for the mysqlx database connection.

1.

$db= ConnectionManager::getInstance()->getByHost('database', 0);
$db->connect();
$db->close();
$db2= ConnectionManager::getInstance()->getByHost('database', 0);
$db2->connect();

Causes an error, because a new connection is opened, but the package counter is still at 1. It must be 0, if the connection is closed.

2.

When fetching the mysql modes, the result is an array:

{0 => 'sql_mode', 1 => '...'}

Regards