From af6902f5bfe4c74e397aba362538f08c7d2a126e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 10 Nov 2002 16:30:23 +0000 Subject: Print the number of returned rows, not the number of fields (This used to be commit cf74ddc2fcb1e7286441edb432d8906bb722a3d4) --- 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 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