[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37561 - gnunet/src/psycstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37561 - gnunet/src/psycstore |
Date: |
Fri, 22 Jul 2016 16:00:13 +0200 |
Author: christophe.genevey
Date: 2016-07-22 16:00:13 +0200 (Fri, 22 Jul 2016)
New Revision: 37561
Modified:
gnunet/src/psycstore/plugin_psycstore_mysql.c
Log:
fix mysql_prepare function
Modified: gnunet/src/psycstore/plugin_psycstore_mysql.c
===================================================================
--- gnunet/src/psycstore/plugin_psycstore_mysql.c 2016-07-22 11:01:38 UTC
(rev 37560)
+++ gnunet/src/psycstore/plugin_psycstore_mysql.c 2016-07-22 14:00:13 UTC
(rev 37561)
@@ -255,7 +255,7 @@
if(NULL == *stmt)
LOG(GNUNET_ERROR_TYPE_ERROR,
_("Error preparing SQL query: %s\n %s\n"),
- mysql_stmt_error (GNUNET_MYSQL_statement_get_stmt (stmt)), sql);
+ mysql_stmt_error (GNUNET_MYSQL_statement_get_stmt (*stmt)), sql);
return 0;
}
@@ -262,31 +262,6 @@
/**
- * @brief Prepare a SQL statement
- *
- * @param dbh handle to the database
- * @param sql SQL statement, UTF-8 encoded
- * @return 0 on success
- */
-static int
-mysql_exec (struct GNUNET_MYSQL_Context *mc,
- struct GNUNET_MYSQL_StatementHandle *sh,
- struct GNUNET_MY_QueryParam *qp)
-{
- int result;
-
- result = GNUNET_MY_exec_prepared (mc, sh, qp);
- LOG(GNUNET_ERROR_TYPE_DEBUG,
- "Executed `GNUNET_MY_exec_prepared`' / %d\n", result);
- if (GNUNET_OK != result)
- LOG(GNUNET_ERROR_TYPE_ERROR,
- _("Error executing SQL query: %s\n"),
- mysql_stmt_error (GNUNET_MYSQL_statement_get_stmt (sh)));
- return result;
-}
-
-
-/**
* Initialize the database connections and associated
* data structures (create tables and indices
* as needed as well).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37561 - gnunet/src/psycstore,
gnunet <=