Luke Ross

DBIx::InterpolationBinding

5 releases git clone https://lukeross.name/projects/dbix-interpolationbinding.git/

Perl extension for turning perl double-quote string interpolation into DBI bind parameters.

Commit 9f5fe8ac15243e6e650e6d33505dba01fd28290f

Documentation fix git-svn-id: file:///home/lukeross/ToDo/code-subversion/perl-DBIx-InterpolationBinding@232 3208c2a6-1f24-0410-bbd8-cb17f2cc2c65

Committed 18 Jan 2008 by lukeross

Changes

@@ -1,5 +1,8 @@
 Revision history for Perl extension DBIx::InterpolationBinding.
 
+0.05  
+        - Fixed documentation error
+
 0.04  Tue Oct 09 2007 23:05:00
 	- Fixed error in test suite
 


lib/DBIx/InterpolationBinding.pm

@@ -11,7 +11,7 @@ use overload '""'       => \&_convert_object_to_string,
              'fallback' => 1;
 require DBI;
 
-$VERSION = '0.04';
+$VERSION = '0.05';
 
 $DEBUG = 0;
 
@@ -178,7 +178,7 @@ major, so you may wish to take care.
 The system doesn't know which bits are SQL and which are bind variables.
 The following doesn't work as expected:
 
-  dbi_exec($dbh, "SELECT * FROM table WHERE id=$id $where_clause");
+  $dbh->execute("SELECT * FROM table WHERE id=$id $where_clause");
 
 You need to build it outside the scope of DBIx::InterpolationBinding in
 this case, using conventional bind params.