From 624a4fc009ce89a5cce77996606c30fbc6ec35fe Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 11 Nov 2002 18:41:28 +0000 Subject: Add extra debug info (This used to be commit 79207d56929de2acc15a761b23c8b33369c298ee) --- source3/passdb/pdb_mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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