[Bast-commits] r5497 - in SQL-Abstract/1.x/branches/1.50_RC: . t
norbi at dev.catalyst.perl.org
norbi at dev.catalyst.perl.org
Tue Feb 17 19:57:28 GMT 2009
Author: norbi
Date: 2009-02-17 19:57:28 +0000 (Tue, 17 Feb 2009)
New Revision: 5497
Modified:
SQL-Abstract/1.x/branches/1.50_RC/
SQL-Abstract/1.x/branches/1.50_RC/t/01generate.t
Log:
r5617 at vger: mendel | 2009-02-17 20:57:22 +0100
* Added test cases for "col => {-in => \[$sql, @bind]}" with bindtype => 'columns'.
Property changes on: SQL-Abstract/1.x/branches/1.50_RC
___________________________________________________________________
Name: svk:merge
- 4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC:5614
4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC-extraparens:5308
+ 4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC:5617
4d5fae46-8e6a-4e08-abee-817e9fb894a2:/local/bast/SQL-Abstract/1.x/branches/1.50_RC-extraparens:5308
Modified: SQL-Abstract/1.x/branches/1.50_RC/t/01generate.t
===================================================================
--- SQL-Abstract/1.x/branches/1.50_RC/t/01generate.t 2009-02-17 19:34:50 UTC (rev 5496)
+++ SQL-Abstract/1.x/branches/1.50_RC/t/01generate.t 2009-02-17 19:57:28 UTC (rev 5497)
@@ -467,6 +467,22 @@
args => ['test', '*', { a => {'<' => \["to_date(?, 'MM/DD/YY')", '02/02/02']}, b => 8 }],
exception_like => qr/bindtype 'columns' selected, you need to pass: \[column_name => bind_value\]/,
},
+ #51
+ {
+ func => 'select',
+ new => {bindtype => 'columns'},
+ args => ['test', '*', { a => {-in => \["(SELECT d FROM to_date(?, 'MM/DD/YY') AS d)", [dummy => '02/02/02']]}, b => 8 }],
+ stmt => 'SELECT * FROM test WHERE ( a IN (SELECT d FROM to_date(?, \'MM/DD/YY\') AS d) AND b = ? )',
+ stmt_q => 'SELECT * FROM `test` WHERE ( `a` IN (SELECT d FROM to_date(?, \'MM/DD/YY\') AS d) AND `b` = ? )',
+ bind => [[dummy => '02/02/02'], [b => 8]],
+ },
+ #52
+ {
+ func => 'select',
+ new => {bindtype => 'columns'},
+ args => ['test', '*', { a => {-in => \["(SELECT d FROM to_date(?, 'MM/DD/YY') AS d)", '02/02/02']}, b => 8 }],
+ exception_like => qr/bindtype 'columns' selected, you need to pass: \[column_name => bind_value\]/,
+ },
);
More information about the Bast-commits
mailing list