Gossamer Forum
Quote Reply
GT::SQL acting odd :/
Hi. Anyone got any ideas why the following code;

Code:
GT::SQL::error = Failed to execute query: 'SELECT * FROM lsql_AddLinkSession WHERE FriOct240818592003 IS NULL AND SessionID = ?
LIMIT 1' Reason: Unknown column 'FriOct240818592003' in 'where clause'

..gives me the following error message;

GT::SQL::error = Failed to execute query: 'SELECT * FROM lsql_AddLinkSession WHERE FriOct240818592003 IS NULL AND SessionID = ?
LIMIT 1' Reason: Unknown column 'FriOct240818592003' in 'where clause'

The .def file looks ok :/

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] GT::SQL acting odd :/ In reply to
Very odd. Changed it to the following;

Code:
my $_date = $IN->param('SessionDate');
$sth = $table->select( { SessionID => $_date } );

... and it works fine now!

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] GT::SQL acting odd :/ In reply to
You didn't post what the original code was..

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] GT::SQL acting odd :/ In reply to
Original code was;

Code:
$sth = $table->select( { SessionID => $IN->param('SessionDate') } );

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!