From 9d7cd6643150704fab06982603b87df22bb3528e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 10 Nov 2002 16:29:50 +0000 Subject: Print the number of returned rows, not the number of fields (This used to be commit f4110a0f80a4f62d548b6d6cae81692476ef85ba) --- 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 0df630d1ee..66429cb4d8 100644 --- a/source3/passdb/pdb_mysql.c +++ b/source3/passdb/pdb_mysql.c @@ -370,8 +370,8 @@ static NTSTATUS mysqlsam_setsampwent(struct pdb_methods *methods, BOOL update) } DEBUG(5, - ("mysqlsam_setsampwent succeeded(%d results)!\n", - mysql_num_fields(data->pwent))); + ("mysqlsam_setsampwent succeeded(%lu results)!\n", + mysql_num_rows(data->pwent))); return NT_STATUS_OK; } -- cgit