summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-11 18:41:28 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-11 18:41:28 +0000
commit624a4fc009ce89a5cce77996606c30fbc6ec35fe (patch)
tree048bc0d2f7d18ed911eb3fa5a8bb3e27efbe8fd7 /source3/passdb
parent3eb60559d859b71ce71756af956203f53a6e8670 (diff)
downloadsamba-624a4fc009ce89a5cce77996606c30fbc6ec35fe.tar.gz
samba-624a4fc009ce89a5cce77996606c30fbc6ec35fe.tar.bz2
samba-624a4fc009ce89a5cce77996606c30fbc6ec35fe.zip
Add extra debug info
(This used to be commit 79207d56929de2acc15a761b23c8b33369c298ee)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_mysql.c4
1 files 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;
}