Gossamer Forum
Home : Products : Gossamer Links : Discussions :

lsql_CatLinks are more than lsql_Links

Quote Reply
lsql_CatLinks are more than lsql_Links
Hi,

I checked my linkssql tables.

lsql_CatLinks - 33454
lsql_Links - 33448

Why is that difference? I backed up yesterday from BACKUP.1 file.

I run resync database, repair tables, build search index. No use.

No errors while importing from backup yesterday.

I checked the forums. Alex in one post said this code:
-----------------------------------------
my $sth = $DB->table('CatLinks', 'Links')->select('left_join', ['LinkID'], { ID => undef });
my @ids = $sth->fetchall_list;
# $DB->table('CatLinks')->delete( { LinkID => \@ids } );
-----------------------------------------

Where to run this exactly? I tried in 'SQL Monitor' screen. I am getting this message:

---------------------------------------------
Error: Query Error: Failed to execute query: 'my $sth = $DB->table('CatLinks', 'Links')->select('left_join', ['LinkID'], { ID => undef }); my @ids = $sth->fetchall_list; # $DB->table('CatLinks')->delete( { LinkID => \@ids } );' Reason: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'my $sth = $DB->table('CatLinks', 'Links')->select('left_join',
----------------------------------------------------------------

Any help?
Subject Author Views Date
Thread lsql_CatLinks are more than lsql_Links hegu 3364 Mar 28, 2004, 3:16 AM
Thread Re: [hegu] lsql_CatLinks are more than lsql_Links
afinlr 3310 Mar 28, 2004, 4:41 AM
Thread Re: [afinlr] lsql_CatLinks are more than lsql_Links
hegu 3299 Mar 28, 2004, 10:33 AM
Thread Re: [hegu] lsql_CatLinks are more than lsql_Links
afinlr 3292 Mar 28, 2004, 10:55 AM
Thread Re: [afinlr] lsql_CatLinks are more than lsql_Links
hegu 3288 Mar 28, 2004, 7:18 PM
Thread Re: [hegu] lsql_CatLinks are more than lsql_Links
afinlr 3272 Mar 29, 2004, 2:07 AM
Post Re: [afinlr] lsql_CatLinks are more than lsql_Links
hegu 3259 Mar 30, 2004, 8:47 AM