Don't quote NULL for debug output
Arthur Axel 'fREW' Schmidt [Tue, 9 Nov 2010 00:25:27 +0000 (18:25 -0600)]
Also require new SQLA with more goodies (and which can take advantage
of an unquoted NULL)

Changes
Makefile.PL
lib/DBIx/Class/Storage/DBI.pm

diff --git a/Changes b/Changes
index c21bc0b..ae8ef47 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for DBIx::Class
 
+    * New Features / Changes
+        - NULL is now supplied unquoted to all debug-objects, in order to
+          differentiate between a real NULL and the string 'NULL'
+
     * Fixes
         - Fixed read-only attribute set attempt in ::Storage::Replicated
           (RT#62642)
index 5fe648b..8967b4c 100644 (file)
@@ -64,7 +64,7 @@ my $runtime_requires = {
   'MRO::Compat'              => '0.09',
   'Module::Find'             => '0.06',
   'Path::Class'              => '0.18',
-  'SQL::Abstract'            => '1.69',
+  'SQL::Abstract'            => '1.71',
   'Sub::Name'                => '0.04',
   'Variable::Magic'          => '0.44',
   'Data::Dumper::Concise'    => '1.000',
index d07bb76..5818e53 100644 (file)
@@ -1522,7 +1522,7 @@ sub _fix_bind_params {
             if ( defined( $_ && $_->[1] ) ) {
                 map { qq{'$_'}; } @{$_}[ 1 .. $#$_ ];
             }
-            else { q{'NULL'}; }
+            else { q{NULL}; }
         } @bind;
 }