Here's a fix:
+++ consistency.pl 5 Aug 2004 20:17:34 -0000
@@ -189,7 +189,7 @@
}
# dgraph => users
- $rel = $DB->table('users', 'dgraph');
+ $rel = $DB->table('dgraph', 'users');
$sth = $rel->select('left_join', 'distinct(dgraph_userid)', { userid => undef });
print "dgraph => users table inconsistencies: ", $sth->rows + 0, "\n";
if ($fix) {
Adrian
Code:
--- consistency.pl 5 Mar 2004 18:14:55 -0000 1.14 +++ consistency.pl 5 Aug 2004 20:17:34 -0000
@@ -189,7 +189,7 @@
}
# dgraph => users
- $rel = $DB->table('users', 'dgraph');
+ $rel = $DB->table('dgraph', 'users');
$sth = $rel->select('left_join', 'distinct(dgraph_userid)', { userid => undef });
print "dgraph => users table inconsistencies: ", $sth->rows + 0, "\n";
if ($fix) {
Adrian