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

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;
 }