[Dbix-class] strange SQL generated
Alan Humphrey
alan.humphrey at comcast.net
Wed Feb 15 18:18:23 CET 2006
Working against a MSSQL backend this code generates the following SQL:
my $cols;
$$cols{id} = 65;
$$cols{url} = 'test';
BirdWeb::Admin::Model::Production->resultset('Urls')->update_or_create(
$cols );
SQL:
SELECT me.id, me.url, me.last_checked, me.last_status FROM urls X me WHERE (
( id = ? ) ) AND
(
SELECT COUNT(*) FROM urls WHERE me > X.me
)
< 1
ORDER BY me DESC
The same code running against a MySQL backend works fine.
- Alan
More information about the Dbix-class
mailing list