From 29edab7547da2d56568238c6a6a33f77a5a9c188 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 11 Nov 2002 18:42:13 +0000 Subject: Add more debug info (This used to be commit 065ed9783236cf1e8254655a9a1d4de937b35018) --- source3/passdb/pdb_mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c index 66429cb4d8..b1b6646638 100644 --- a/source3/passdb/pdb_mysql.c +++ b/source3/passdb/pdb_mysql.c @@ -357,7 +357,7 @@ static NTSTATUS mysqlsam_setsampwent(struct pdb_methods *methods, BOOL update) if (ret) { DEBUG(0, - ("Error executing query: %s\n", mysql_error(data->handle))); + ("Error executing MySQL query %s: %s\n", query, mysql_error(data->handle))); return NT_STATUS_UNSUCCESSFUL; } @@ -525,7 +525,7 @@ static NTSTATUS mysqlsam_select_by_field(struct pdb_methods * methods, SAM_ACCOU if (mysql_ret) { DEBUG(0, - ("Error while executing MySQL query: %s\n", + ("Error while executing MySQL query %s: %s\n", query, mysql_error(data->handle))); return NT_STATUS_UNSUCCESSFUL; } -- cgit