Print the number of returned rows, not the number of fields
authorJelmer Vernooij <jelmer@samba.org>
Sun, 10 Nov 2002 16:29:50 +0000 (16:29 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 10 Nov 2002 16:29:50 +0000 (16:29 +0000)
(This used to be commit f4110a0f80a4f62d548b6d6cae81692476ef85ba)

source3/passdb/pdb_mysql.c

index 0df630d1ee1c1d585278051071b2fba6ebd6d67c..66429cb4d833e0cd3dcd456cc73c55a4c78127db 100644 (file)
@@ -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;
 }