summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-11 18:42:13 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-11 18:42:13 +0000
commit29edab7547da2d56568238c6a6a33f77a5a9c188 (patch)
treee41d6b05691fe8c11d4add5f6ab4dd52ea02610d /source3
parent18cb3695df800bcedd4997d3b8fdd56e50ca84d8 (diff)
downloadsamba-29edab7547da2d56568238c6a6a33f77a5a9c188.tar.gz
samba-29edab7547da2d56568238c6a6a33f77a5a9c188.tar.bz2
samba-29edab7547da2d56568238c6a6a33f77a5a9c188.zip
Add more debug info
(This used to be commit 065ed9783236cf1e8254655a9a1d4de937b35018)
Diffstat (limited to 'source3')
-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;
}