You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by da...@apache.org on 2007/04/26 07:45:59 UTC
svn commit: r532622 -
/webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c
Author: damitha
Date: Wed Apr 25 22:45:58 2007
New Revision: 532622
URL: http://svn.apache.org/viewvc?view=rev&rev=532622
Log:
mysql_real_connect is passed with the mysql connection pointer. Earlier
NULL was passed
Modified:
webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c
Modified: webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c?view=diff&rev=532622&r1=532621&r2=532622
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c (original)
+++ webservices/sandesha/trunk/c/src/storage/mysql/permanent_transaction.c Wed Apr 25 22:45:58 2007
@@ -159,7 +159,7 @@
"sandesha2_client_db", NULL);*/
db_name = "sandesha2_client_db";
}
- trans_impl->dbconn = mysql_init(NULL);
+ trans_impl->dbconn = mysql_init(trans_impl->dbconn);
if (!mysql_real_connect(trans_impl->dbconn, server,
user, password, db_name, 0, NULL, 0))
{
@@ -170,7 +170,7 @@
AXIS2_FAILURE);
return NULL;
}
- rc = mysql_query(trans_impl->dbconn, "begin;");
+ rc = mysql_autocommit(trans_impl->dbconn, 0);
if(rc )
{
mysql_close(trans_impl->dbconn);
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org