[Rt-commit] r3959 - in Jifty-DBI/trunk: . t
trs at bestpractical.com
trs at bestpractical.com
Thu Oct 13 13:52:01 EDT 2005
Author: trs
Date: Thu Oct 13 13:52:00 2005
New Revision: 3959
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/Changes
Jifty-DBI/trunk/MANIFEST
Jifty-DBI/trunk/META.yml
Jifty-DBI/trunk/Makefile.PL
Jifty-DBI/trunk/SIGNATURE
Jifty-DBI/trunk/t/01searches.t
Log:
r5411 at wintermute (orig r3537): jesse | 2005-07-26 22:53:23 -0400
r7036 at hualien: jesse | 2005-07-26 15:34:18 -0400
* When loading a foriegn record, bypass access control, as it leads to a small
bootstrapping issue.
r5469 at wintermute (orig r3556): jesse | 2005-07-29 12:53:08 -0400
r7149 at hualien: jesse | 2005-07-29 12:50:16 -0400
* 1.31 - fix manifest
r5560 at wintermute (orig r3577): alexmv | 2005-08-02 01:46:15 -0400
r5571 at zoq-fot-pik: chmrr | 2005-08-02 01:45:37 -0400
* ->foo_id now returns just a number if it is a reference; ->foo
returns the object.
* POD fixes
r5563 at wintermute (orig r3580): glasser | 2005-08-02 14:34:09 -0400
r38369 at tin-foil: glasser | 2005-08-02 14:33:36 -0400
RT::Record::_Accessible doesn't actually work like SB::Record's (it returns 0
instead of undef); this is an easier way to fix that infinite loop than making RT compliant.
r5799 at wintermute (orig r3625): glasser | 2005-08-09 17:37:41 -0400
r39287 at tin-foil: glasser | 2005-08-09 17:37:05 -0400
Because SearchBuilder has the unfortunate historical feature of adding
% around LIKE values in Limits, add a MATCHES operators that... doesn't do that.
(For Jifty::DBI, we will make LIKE do what MATCHES does here, and CONTAINS do
what LIKE does here.)
r6152 at wintermute (orig r3736): alexmv | 2005-08-30 12:59:25 -0400
r5872 at zoq-fot-pik: chmrr | 2005-08-15 17:43:59 -0400
* Working statement logging (to memory, not file)
* Version bump (to development version)
r6484 at wintermute (orig r3874): jesse | 2005-09-22 14:26:11 -0400
r14122 at hualien: jesse | 2005-08-31 09:40:22 -0400
* Added a build_requires on SQLite
r6485 at wintermute (orig r3875): jesse | 2005-09-22 14:26:45 -0400
r14189 at hualien: jesse | 2005-09-01 06:57:37 -0400
* This be 1.32
r6486 at wintermute (orig r3876): jesse | 2005-09-22 14:29:40 -0400
r15951 at hualien: jesse | 2005-09-22 14:29:17 -0400
* 1.33
Modified: Jifty-DBI/trunk/Changes
==============================================================================
--- Jifty-DBI/trunk/Changes (original)
+++ Jifty-DBI/trunk/Changes Thu Oct 13 13:52:00 2005
@@ -1,12 +1,20 @@
Revision history for Perl extension Jifty::DBI.
+1.33 Thu Sep 22 14:27:46 EDT 2005
-* __set no longer returns failure when you try to apply a change that's already
- the current value
+* Better SQL statement logging from alex
+1.32 Thu Sep 1 06:52:42 EDT 2005
-==> Forked into Jifty::DBI
+* DBD::SQLite is necessary for the test suite to run correctl
+
+1.31 Fri Jul 29 12:47:25 EDT 2005
+
+* Updated MANIFEST to fix a build issue -
+ Thanks to Andy Lester and David Glasser
+
+1.30 Thu Jul 28 10:17:27 EDT 2005
* Removed {{{ and }}} fold markers. Patch from Ruslan
Modified: Jifty-DBI/trunk/MANIFEST
==============================================================================
--- Jifty-DBI/trunk/MANIFEST (original)
+++ Jifty-DBI/trunk/MANIFEST Thu Oct 13 13:52:00 2005
@@ -29,6 +29,21 @@
META.yml
README
ROADMAP
+SearchBuilder.pm
+SearchBuilder/Handle.pm
+SearchBuilder/Handle/Informix.pm
+SearchBuilder/Handle/mysql.pm
+SearchBuilder/Handle/mysqlPP.pm
+SearchBuilder/Handle/ODBC.pm
+SearchBuilder/Handle/Oracle.pm
+SearchBuilder/Handle/Pg.pm
+SearchBuilder/Handle/SQLite.pm
+SearchBuilder/Handle/Sybase.pm
+SearchBuilder/Record.pm
+SearchBuilder/Record/Cachable.pm
+SearchBuilder/SchemaGenerator.pm
+SearchBuilder/Union.pm
+SearchBuilder/Unique.pm
SIGNATURE
t/00.load.t
t/01basics.t
Modified: Jifty-DBI/trunk/META.yml
==============================================================================
--- Jifty-DBI/trunk/META.yml (original)
+++ Jifty-DBI/trunk/META.yml Thu Oct 13 13:52:00 2005
@@ -1,5 +1,5 @@
-name: Jifty-DBI
-version: 0.02
+name: DBIx-SearchBuilder
+version: 1.33
license: perl
distribution_type: module
build_requires:
Modified: Jifty-DBI/trunk/Makefile.PL
==============================================================================
Modified: Jifty-DBI/trunk/SIGNATURE
==============================================================================
--- Jifty-DBI/trunk/SIGNATURE (original)
+++ Jifty-DBI/trunk/SIGNATURE Thu Oct 13 13:52:00 2005
@@ -14,24 +14,25 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 8e8a505afe88ea427c23ce5f1c948ff250e23a51 Changes
-SHA1 cc97ebd4a76d96cf13c439a3317522cd6d6a5aa9 MANIFEST
-SHA1 9a5d8e8beb344a9ea970124b0875a2ef0d74e3df META.yml
-SHA1 87ad5facaf7f56d0fb0db4e4e200a32b1feafb14 Makefile.PL
+SHA1 b99db3fa10d5c7616968319db1bd03f1d16b632d Changes
+SHA1 e2ecbebae35087c74c256cf60871783963108dde MANIFEST
+SHA1 68591cf5f61a2be9288cedf25cc69edcf8284317 META.yml
+SHA1 ee67bd8159b64f5020f5ddd82cc88375c3716e06 Makefile.PL
SHA1 d7a41642c368f2a587587e09f9e815d434feebff README
-SHA1 577f45aff6753d42f43b794745175ce001af950f SearchBuilder.pm
-SHA1 aab8beb921d655433f1bfbefa18ba961ddac1888 SearchBuilder/Handle.pm
-SHA1 0103d897704a95032b32363dc65ea4f0d8f5965d SearchBuilder/Handle/Informix.pm
+SHA1 5a53d12d5cccd94845a6a7cc105cd9be34e20f1c ROADMAP
+SHA1 f09f56a6b597995f47a3193d37bf09a5cd9c0fb3 SearchBuilder.pm
+SHA1 dd33a037b62d7d6d0263aa5beb464199df7174f6 SearchBuilder/Handle.pm
+SHA1 3ae0584e86c7573b6bfda4d025193c970ba30b40 SearchBuilder/Handle/Informix.pm
SHA1 861cee4205d1f367af5cc68b561fd37e38c1acf0 SearchBuilder/Handle/ODBC.pm
-SHA1 6f798ff065f28239767230fcd8c9330dae4eafa7 SearchBuilder/Handle/Oracle.pm
-SHA1 bd0be64d5ce723cdc6323cc8c8b2265f58a959f9 SearchBuilder/Handle/Pg.pm
-SHA1 9f4aee2b7566bd30b0a35afe53aa7abf5196bc59 SearchBuilder/Handle/SQLite.pm
-SHA1 aec168c75ba6a33e3e5ac85cbefd2e2d7c036696 SearchBuilder/Handle/Sybase.pm
-SHA1 6399c19c7600c01f75e187facb1c01b2611b95df SearchBuilder/Handle/mysql.pm
+SHA1 50069f9fbfec254371f4c295f517fb73e1c006b2 SearchBuilder/Handle/Oracle.pm
+SHA1 cc978e63ce39bd3166e4a33f64988e0909e1bfe6 SearchBuilder/Handle/Pg.pm
+SHA1 b2efe7b5c8fe4016dcbcfb4c0617b9123fa31934 SearchBuilder/Handle/SQLite.pm
+SHA1 494edbdaf8c9ba7c36fec4809d595051594a9c47 SearchBuilder/Handle/Sybase.pm
+SHA1 7fac6d8e867781f7d2007f8cc91bb7d9eadb1bfe SearchBuilder/Handle/mysql.pm
SHA1 f4f6ea88631e6310243b6351e8df11e1ec88b261 SearchBuilder/Handle/mysqlPP.pm
-SHA1 8d3c495adef829aee17100de02d92504c9a687ec SearchBuilder/Record.pm
-SHA1 dd4752f1b3a917de3823ddec20331e3c3d05e227 SearchBuilder/Record/Cachable.pm
-SHA1 3c98e03de0a6564fe6b864be8cb5183f2dce8196 SearchBuilder/SchemaGenerator.pm
+SHA1 a628f565b460cf4060d3ef1fdb17878059eac7e5 SearchBuilder/Record.pm
+SHA1 a5201fbeca07c19669ce920a4d48e39634626c46 SearchBuilder/Record/Cachable.pm
+SHA1 a15065e472797e2bfe8149f04d3bdc58f67a7a6d SearchBuilder/SchemaGenerator.pm
SHA1 446f59a1fa8fa631c908f1fe3ea671c7178c9270 SearchBuilder/Union.pm
SHA1 1eb4e838ff1d8d927bfe177bf578df246802b03d SearchBuilder/Unique.pm
SHA1 e7c7c7c91025072d25da78c93cefa2bc0aaf2b35 ex/Example/Model/Address.pm
@@ -42,23 +43,22 @@
SHA1 2e300b145ee61eea9dfd71624b17b0bc9218aa4f inc/Module/Install/Base.pm
SHA1 e094fe96aef06c68d7a424818c12e52b11f1ccdd inc/Module/Install/Makefile.pm
SHA1 e448c6dc5351ef425e3f8bdbeb642409120bc3ca inc/Module/Install/Metadata.pm
-SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 pm_to_blib
SHA1 e59ea21b9407644714a5f67c7132a11916c25133 t/00.load.t
SHA1 a7ed1ee359ebe2842b354b5652a441403e802080 t/01basics.t
SHA1 2b2dc6f72370f60e1d233f2f8c12bb87414e825c t/01nocap_api.t
SHA1 0b41cb395ef2894ccfbb9facd46d8667af7995fc t/01records.t
-SHA1 4b1629583ac403c1dae7a56905ba27ce95be0249 t/01searches.t
+SHA1 1fbd65dc3d1e06cb46fa75dbd92eafae6e980250 t/01searches.t
SHA1 18c721a5d0710b2e610f28eac705d8fb6e6dd8d7 t/02records_object.t
SHA1 a1808be8dd28bd176ae0243876de36691afefefb t/03rebless.t
-SHA1 0e491643b0e344ea80e4bdb1c6e4b8327fa91915 t/10schema.t
+SHA1 f8f5634e7dc28068722347f47d7e05d06435e22c t/10schema.t
SHA1 56dc809450f969d0b2f624b6e11f0b7fe3d13113 t/11schema_records.t
SHA1 e9c6a5881fc60173fbc8d479c1afd2ce3b43bef1 t/pod.t
-SHA1 c26d6927a84e35ee107984f494bf1c8bbfbb55c1 t/testmodels.pl
+SHA1 dacb28645e8b80df7c190ddfedcdc957c3d08d75 t/testmodels.pl
SHA1 4788496012998da32d01aef7e74d2070931290e0 t/utils.pl
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCp9bOEi9d9xCOQEYRAinIAJwJtA0cqIIy2uRmQ0FJWLbsGTrrHACgjH+T
-hsQf/j7k2YL/5ZAaTfTtTlc=
-=Z6fg
+iD8DBQFDMvf0Ei9d9xCOQEYRAqL0AKCxJDGbnESlu8gFHgU0gDJq9eaTUgCdHuLa
+xBpAkFKMMlEA0yw7WdqozHY=
+=1MuO
-----END PGP SIGNATURE-----
Modified: Jifty-DBI/trunk/t/01searches.t
==============================================================================
--- Jifty-DBI/trunk/t/01searches.t (original)
+++ Jifty-DBI/trunk/t/01searches.t Thu Oct 13 13:52:00 2005
@@ -8,7 +8,7 @@
BEGIN { require "t/utils.pl" }
our (@available_drivers);
-use constant TESTS_PER_DRIVER => 59;
+use constant TESTS_PER_DRIVER => 69;
my $total = scalar(@available_drivers) * TESTS_PER_DRIVER;
plan tests => $total;
@@ -113,6 +113,30 @@
isa_ok( $first_rec, 'Jifty::DBI::Record', 'First returns record object' );
is( $first_rec->login, 'glasser', 'login is correct' );
+ # MATCHES
+ $users_obj->CleanSlate;
+ is_deeply( $users_obj, $clean_obj, 'after CleanSlate looks like new object');
+ $users_obj->Limit( FIELD => 'Name', OPERATOR => 'MATCHES', VALUE => 'lass' );
+ is( $users_obj->Count, 0, "found no user matching 'lass' in the name" );
+
+ $users_obj->CleanSlate;
+ is_deeply( $users_obj, $clean_obj, 'after CleanSlate looks like new object');
+ $users_obj->Limit( FIELD => 'Name', OPERATOR => 'MATCHES', VALUE => '%lass' );
+ is( $users_obj->Count, 0, "found no user matching '%lass' in the name" );
+
+ $users_obj->CleanSlate;
+ is_deeply( $users_obj, $clean_obj, 'after CleanSlate looks like new object');
+ $users_obj->Limit( FIELD => 'Name', OPERATOR => 'MATCHES', VALUE => 'lass%' );
+ is( $users_obj->Count, 0, "found no user matching 'lass%' in the name" );
+
+ $users_obj->CleanSlate;
+ is_deeply( $users_obj, $clean_obj, 'after CleanSlate looks like new object');
+ $users_obj->Limit( FIELD => 'Name', OPERATOR => 'MATCHES', VALUE => '%lass%' );
+ is( $users_obj->Count, 1, "found one user matching '%lass%' in the name" );
+ $first_rec = $users_obj->First;
+ isa_ok( $first_rec, 'DBIx::SearchBuilder::Record', 'First returns record object' );
+ is( $first_rec->Login, 'glasser', 'login is correct' );
+
# STARTSWITH
$users_obj->clean_slate;
is_deeply( $users_obj, $clean_obj, 'after clean_slate looks like new object');
More information about the Rt-commit
mailing list