[Jifty-commit] r1335 - in Jifty-DBI/trunk: t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jun 21 13:56:52 EDT 2006
Author: seanmil
Date: Wed Jun 21 13:56:49 2006
New Revision: 1335
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/t/01searches.t
Log:
r535 at pc102: sean | 2006-06-21 13:56:38 -0400
* Mark case-sensitive tests as TODO for MySQL
Modified: Jifty-DBI/trunk/t/01searches.t
==============================================================================
--- Jifty-DBI/trunk/t/01searches.t (original)
+++ Jifty-DBI/trunk/t/01searches.t Wed Jun 21 13:56:49 2006
@@ -151,26 +151,30 @@
is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
$users_obj->limit( column => 'address', operator => 'IS NOT', value => 'NULL', QOUTEvalue => 0 );
is( $users_obj->count, $count_all, "found users who have address filled" );
-
- # CASE SENSITIVITY, default is limits are not case sensitive
- $users_obj->clean_slate;
- is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
- $users_obj->limit( column => 'name', value => 'Jesse Vincent' );
- is( $users_obj->count, 1, "case insensitive, matching case, should find one row");
- $users_obj->clean_slate;
- is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
- $users_obj->limit( column => 'name', value => 'jesse vincent' );
- is( $users_obj->count, 1, "case insensitive, non-matched case, should find one row");
-
- # CASE SENSITIVITY, testing with case_sensitive => 1
- $users_obj->clean_slate;
- is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
- $users_obj->limit( column => 'name', value => 'Jesse Vincent', case_sensitive => 1 );
- is( $users_obj->count, 1, "case sensitive search, should find one row");
- $users_obj->clean_slate;
- is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
- $users_obj->limit( column => 'name', value => 'jesse vincent', case_sensitive => 1 );
- is( $users_obj->count, 0, "case sensitive search, should find zero rows");
+
+ TODO: {
+ local $TODO = "MySQL still needs case sensitive fixes" if ( $d eq 'mysql' || $d eq 'mysqlPP' );
+
+ # CASE SENSITIVITY, default is limits are not case sensitive
+ $users_obj->clean_slate;
+ is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
+ $users_obj->limit( column => 'name', value => 'Jesse Vincent' );
+ is( $users_obj->count, 1, "case insensitive, matching case, should find one row");
+ $users_obj->clean_slate;
+ is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
+ $users_obj->limit( column => 'name', value => 'jesse vincent' );
+ is( $users_obj->count, 1, "case insensitive, non-matched case, should find one row");
+
+ # CASE SENSITIVITY, testing with case_sensitive => 1
+ $users_obj->clean_slate;
+ is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
+ $users_obj->limit( column => 'name', value => 'Jesse Vincent', case_sensitive => 1 );
+ is( $users_obj->count, 1, "case sensitive search, should find one row");
+ $users_obj->clean_slate;
+ is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
+ $users_obj->limit( column => 'name', value => 'jesse vincent', case_sensitive => 1 );
+ is( $users_obj->count, 0, "case sensitive search, should find zero rows");
+ }
# ORDER BY / GROUP BY
$users_obj->clean_slate;
More information about the Jifty-commit
mailing list