Permalink
Browse files

uploadin

  • Loading branch information...
1 parent 6b49098 commit 8f5a5135a2caf94b5480115c788ff7ffeefb00eb Stevan Little committed Jan 14, 2005
View
142 Changes
@@ -0,0 +1,142 @@
+Revision history for Perl extension DBD::Mock.
+
+0.19 Fri Jan 7 2005
+ - changed the VERSION in lib/DBD/Mock.pm to be 1.23, allow me to explain...
+
+ Chris Winters (the original author) used the CVS derived
+ VERSION, which when I took over the module (8 versions ago)
+ was at 1.15. Since I was not using Chris's CVS repo to store this
+ I decided to give Mock.pm the VERSION number found in the VERSION
+ file.
+
+ Well,... PAUSE's indexer doesn't like it since it is a lower
+ number and would complain every time I uploaded a new version.
+ I ignored these complaints (at my own peril) until now.
+
+ I found out recently that if you had version 0.11 or below installed
+ (where the Mock.pm was version 1.15 or below), then installing through
+ the CPAN shell would tell you DBD::Mock was up to date, even though it
+ wasn't. So in order to fix this issue, and make sure that all those who
+ want to install and update DBD::Mock easily, I changed the version
+ number of DBD::Mock to be 1.23 to reflect the number of updates
+ I have done since Chris handed it over to me.
+
+ *sigh*
+
+ Okay good, thats off my chest now.
+
+0.18 Wed Jan 5 2005
+ - added reset() method to the
+ DBD::Mock::StatementTrack::Iterator object
+ - added test and docs for this
+
+ - added the DBD::Mock::Session object and added
+ the support for it in the DBD::Mock driver
+ - added tests and docs for this
+ - Thanks to Rob Kinyon and Chris Winters for
+ their feedback on this feature
+
+ - some general POD cleanup and formatting
+
+0.17 Thurs Nov 4 2004
+ - added the following items:
+ - a 'mock_num_rows' attribute which will give you
+ the number of records affected/returned by the
+ last statement
+ - a num_rows method in the DBD::Mock::StatementTrack
+ object, which is where the above attribute gets it's
+ value
+ - added the 'rows' method for statement handles (which didnt
+ work before)
+
+0.16 Sat Oct 30 2004
+ - minor change to the DBD::Mock::StatementTrack::Iterator
+ behavior. It no longer derefs the history array, so it
+ maintains a reference to it and therefore can be used like
+ this:
+ get-statement-iterator
+ run-query
+ check-next-statement-in-iterator
+ run-query
+ check-next-statement-in-iterator
+ ...
+ This prevents the need to re-fetch the iterator after
+ each query.
+
+0.15 Fri Oct 29 2004
+ - added the DBD::Mock::StatementTrack::Iterator
+ object which can be accessed from the
+ 'mock_all_history_iterator' attribute.
+ - write the docs and test for it
+
+0.14 Fri Oct 29 2004
+ - added the mock_last_insert_id attribute
+ which will get incremented upon each INSERT
+ query run.
+ - added tests and docs for this
+ - added the mock_start_insert_id attirbute
+ so that you can both reset and set the start
+ number for mock_last_insert_id
+ - added tests and docs for this
+
+ ** EXPERIMENTAL FEATURE (use caution) **
+ - added a feature to alias attributes. Basically it
+ allows you to alias an expected attribute like
+ 'mysql_insertid' to something DBD::Mock already has
+ like 'mock_last_insert_id'.
+ Right now this feature is highly experimental, and
+ has been added as a first attempt automatically handle
+ some of the DBD specific attributes which are commonly
+ used/accessed in DBI programming.
+
+0.13 Thurs Oct 28 2004
+ - added prepare_cached as suggested by Rob Kinyon
+ in RT bug #7331. Also added his test script in
+ 15_prepare_cached.t
+
+0.12 Thurs Sept 2 2004
+** First version maintained by Stevan Little <stevan@iinteractive.com> **
+ - built up the test suite to 89.7% coverage
+ - removed the undocumented 'mock_auto_commit' since it really
+ was not very useful at this point.
+ - added the DBD::Mock::Pool functionality
+ - added tests for this
+ - added documentation for this
+ - added pod.t to test suite
+ - removed AUTOLOAD in DBD::Mock::StatementTrack and replaced it with
+ hand coded methods (sorry I really dislike AUTOLOAD)
+ - centralized error handling in DBD::Mock::_error_handler
+
+0.11 Fri Jul 23 10:35:13 EDT 2004
+
+ - Fix CPAN Bug #7057: add a no-op 'disconnect_all()' to
+ DBD::Mock::dr to support DBI versions earlier than 1.34.
+
+ - Add the ability to create SQL parsers that get fired on a
+ prepare(). This way you can ensure your application generates
+ correct SQL and have the system fail at the right time. Thanks
+ to Rob Kinyon <Rob.Kinyon@progressive-medical.com> for the idea.
+
+0.10 Sat May 8 14:12:39 EDT 2004
+
+ - Incorporate number of patches from Stevan Little to implement
+ 'mock_can_connect', which allows you to simulate a downed
+ database. Add supporting tests for database and statement usage.
+
+ - Add the ability for 'mock_add_resultset' to associate a
+ resultset with a particular SQL statement. Thanks to Stevan for
+ the idea.
+
+ - Add documentation for database handle property
+ 'mock_add_resultset'
+
+0.02 Tue Mar 9 12:56:54 EST 2004
+
+ Add 'VERSION' to MANIFEST, thanks to Mike Castle for the note.
+
+0.01 Sun Mar 7 23:24:24 EST 2004
+
+ Initial version spawned from DBD::NullP shipped with the
+ DBI. Many thanks much to Tim Bunce for the pointer and the
+ original code.
+
View
@@ -0,0 +1,25 @@
+Changes
+Makefile.PL
+MANIFEST
+META.yml
+README
+VERSION
+lib/DBD/Mock.pm
+t/00_basic.t
+t/10_db_handle.t
+t/11_dr_handle.t
+t/12_db_can_connect.t
+t/13_misc_mock_attr.t
+t/14_db_parser.t
+t/15_prepare_cached.t
+t/16_mock_attribute_aliases.t
+t/20_st_execute_empty.t
+t/25_st_execute_bound_params.t
+t/30_st_execute_pass_params.t
+t/35_st_fetch_records.t
+t/37_st_can_connect.t
+t/40_mock_statement_track.t
+t/45_mock_statement_track_iterator.t
+t/50_db_pool.t
+t/60_DBD_Mock_Session_test.t
+t/pod.t
View
@@ -0,0 +1,10 @@
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: DBD-Mock
+version: 0.19
+version_from: VERSION
+installdirs: site
+requires:
+ DBI: 1.3
+
+distribution_type: module
+generated_by: ExtUtils::MakeMaker version 6.12
View
@@ -0,0 +1,12 @@
+use ExtUtils::MakeMaker;
+
+WriteMakefile(
+ NAME => 'DBD::Mock',
+ VERSION_FROM => 'VERSION',
+ PREREQ_PM => {
+ DBI => 1.30,
+ },
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'lib/DBD/Mock.pm', # retrieve abstract from module
+ AUTHOR => 'Chris Winters <chris@cwinters.com>') : ()),
+);
View
34 README
@@ -0,0 +1,34 @@
+DBD::Mock
+=====================
+
+This is a simple mock DBD implementation used for testing. It's
+entirely self-contained so that you can extract the single library
+file (DBD/Mock.pm), put it in your own distribution and be able to run
+DBI-based tests even though you don't have information about a
+database. (If you're doing so you should probably get rid of the docs
+to save space...)
+
+INSTALLATION
+
+To install this module type the following:
+
+ perl Makefile.PL
+ make
+ make test
+ make install
+
+DEPENDENCIES
+
+This module requires these other modules and libraries:
+
+ DBI (wouldn't make too much sense without it...)
+
+COPYRIGHT AND LICENCE
+
+Copyright (C) 2004 Chris Winters <chris@cwinters.com>
+Copyright (C) 2004 Stevan Little <stevan@iinteractive.com>
+
+This library is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+========================================
View
@@ -0,0 +1 @@
+$VERSION = '0.19';
Oops, something went wrong.

0 comments on commit 8f5a513

Please sign in to comment.