[Bast-commits] r6125 - in DBIx-Class/0.08/branches/sybase_mssql: . lib/DBIx/Class/Storage/DBI lib/DBIx/Class/Storage/DBI/Sybase

arcanez at dev.catalyst.perl.org arcanez at dev.catalyst.perl.org
Tue May 5 07:27:14 GMT 2009


Author: arcanez
Date: 2009-05-05 07:27:13 +0000 (Tue, 05 May 2009)
New Revision: 6125

Modified:
   DBIx-Class/0.08/branches/sybase_mssql/Changes
   DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase.pm
   DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm
Log:
add a line to Changes and add a CAVEAT

Modified: DBIx-Class/0.08/branches/sybase_mssql/Changes
===================================================================
--- DBIx-Class/0.08/branches/sybase_mssql/Changes	2009-05-05 07:09:18 UTC (rev 6124)
+++ DBIx-Class/0.08/branches/sybase_mssql/Changes	2009-05-05 07:27:13 UTC (rev 6125)
@@ -1,5 +1,9 @@
 Revision history for DBIx::Class
 
+        - Refactor DBIx::Class::Storage::DBI::Sybase to automatically 
+          load a subclass, namely Microsoft_SQL_Server.pm
+          (similar to DBIx::Class::Storage::DBI::ODBC) 
+
 0.08102 2009-04-30 08:29:00 (UTC)
         - Fixed two subtle bugs when using columns or select/as
           paired with a join (limited prefetch)

Modified: DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm
===================================================================
--- DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm	2009-05-05 07:09:18 UTC (rev 6124)
+++ DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm	2009-05-05 07:27:13 UTC (rev 6125)
@@ -19,11 +19,15 @@
   $schema->storage_type('::DBI::Sybase::Microsoft_SQL_Server');
   $schema->connect_info('dbi:Sybase:....', ...);
 
-=head1 BUGS
+=head1 CAVEATS
 
-Currently, this doesn't work right unless you call C<Class::C3::reinitialize()>
-after connecting.
+This storage driver uses L<DBIx::Class::Storage::DBI::NoBindVars> as a base.
+This means that bind variables will be interpolated (properly quoted of course)
+into the SQL query itself, without using bind placeholders.
 
+More importantly this means that caching of prepared statements is explicitly
+disabled, as the interpolation renders it useless.
+
 =head1 AUTHORS
 
 Brandon L Black <blblack at gmail.com>

Modified: DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase.pm
===================================================================
--- DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase.pm	2009-05-05 07:09:18 UTC (rev 6124)
+++ DBIx-Class/0.08/branches/sybase_mssql/lib/DBIx/Class/Storage/DBI/Sybase.pm	2009-05-05 07:27:13 UTC (rev 6125)
@@ -31,6 +31,15 @@
 you are using an MSSQL database via L<DBD::Sybase>, see
 L<DBIx::Class::Storage::DBI::Sybase::MSSQL>.
 
+=head1 CAVEATS
+
+This storage driver uses L<DBIx::Class::Storage::DBI::NoBindVars> as a base.
+This means that bind variables will be interpolated (properly quoted of course)
+into the SQL query itself, without using bind placeholders.
+
+More importantly this means that caching of prepared statements is explicitly
+disabled, as the interpolation renders it useless.
+
 =head1 AUTHORS
 
 Brandon L Black <blblack at gmail.com>




More information about the Bast-commits mailing list