Author: johannes Date: 2010-02-25 04:53:19 -0600 (Thu, 25 Feb 2010) New Revision: 10152
Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py Log: Added support for unix_socket argument to change location of the socket Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py =================================================================== --- trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py 2010-02-09 12:46:17 UTC (rev 10151) +++ trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py 2010-02-25 10:53:19 UTC (rev 10152) @@ -136,7 +136,8 @@ # optional parameters for gnueName, dbName in [('host', 'host'), ('port', 'port'), - ('unicode', 'use_unicode')]: + ('unicode', 'use_unicode'), + ('unix_socket', 'unix_socket')]: if gnueName in connectData: if gnueName == 'port': @@ -166,7 +167,7 @@ # fix encoding setting of driver if mySQL_encTable.has_key (self._encoding): - self._native.charset = self._encoding + self._native.charset = self._encoding # only available if MySQL is compiled with transaction support try: _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue