[Bast-commits] r7270 - in DBIx-Class/0.08/branches/sybase: .
lib/DBIx/Class
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Sat Aug 8 23:19:53 GMT 2009
Author: ribasushi
Date: 2009-08-08 23:19:49 +0000 (Sat, 08 Aug 2009)
New Revision: 7270
Modified:
DBIx-Class/0.08/branches/sybase/Changes
DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/ResultSet.pm
Log:
Changes and minor code rewrap
Modified: DBIx-Class/0.08/branches/sybase/Changes
===================================================================
--- DBIx-Class/0.08/branches/sybase/Changes 2009-08-08 22:41:12 UTC (rev 7269)
+++ DBIx-Class/0.08/branches/sybase/Changes 2009-08-08 23:19:49 UTC (rev 7270)
@@ -18,20 +18,17 @@
- 'uniqueidentifier' support with auto newid()
- Dynamic cursor support and other MARS options for ODBC
- savepoints with auto_savepoint => 1
- - Support for MSSQL 'money' type
+ - Complete Sybase RDBMS support including:
+ - Support for TEXT/IMAGE columns
+ - Transaction savepoints support
+ - Support for bind variables when connecting via Sybase OpenClient
+ - Support for interpolated variables with proper quoting when
+ connecting via FreeTDS
+ - Support for MSSQL/Sybase 'money' type
- Support for 'smalldatetime' type used in MSSQL and Sybase for
InflateColumn::DateTime
- Support for Postgres 'timestamp without timezone' type in
InflateColumn::DateTime
- - Much improved Sybase support, including support for TEXT/IMAGE
- columns and connecting via FreeTDS
- - Replication updates: Improved the replication tests so that they are
- more reliable and accurate, and hopefully solve some cross platform
- issues. Bugfixes related to naming particular replicants in a
- 'force_pool' attribute. Lots of documentation updates, including a
- new Introduction.pod file. Fixed the way we detect transaction to
- make this more reliable and forward looking. Fixed some trouble with
- the way Moose Types are used.
- Added new MySQL specific on_connect_call macro 'set_strict_mode'
(also known as make_mysql_not_suck_as_much)
- Multiple prefetch-related fixes:
Modified: DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/ResultSet.pm 2009-08-08 22:41:12 UTC (rev 7269)
+++ DBIx-Class/0.08/branches/sybase/lib/DBIx/Class/ResultSet.pm 2009-08-08 23:19:49 UTC (rev 7270)
@@ -2764,31 +2764,38 @@
# build columns (as long as select isn't set) into a set of as/select hashes
unless ( $attrs->{select} ) {
- @colbits = map {
- ( ref($_) eq 'HASH' )
- ? $_
- : {
- (
- /^\Q${alias}.\E(.+)$/
- ? "$1"
- : "$_"
- )
- =>
- (
- /\./
- ? "$_"
- : "${alias}.$_"
- )
- }
- } ( ref($attrs->{columns}) eq 'ARRAY' ) ?
- @{ delete $attrs->{columns}} :
- (delete $attrs->{columns} ||
- $source->storage->order_columns_for_select(
- $source,
- [ $source->columns ]
- )
- );
+
+ my @cols = ( ref($attrs->{columns}) eq 'ARRAY' )
+ ? @{ delete $attrs->{columns}}
+ : (
+ ( delete $attrs->{columns} )
+ ||
+ $source->storage->order_columns_for_select(
+ $source,
+ [ $source->columns ]
+ )
+ )
+ ;
+
+ @colbits = map {
+ ( ref($_) eq 'HASH' )
+ ? $_
+ : {
+ (
+ /^\Q${alias}.\E(.+)$/
+ ? "$1"
+ : "$_"
+ )
+ =>
+ (
+ /\./
+ ? "$_"
+ : "${alias}.$_"
+ )
+ }
+ } @cols;
}
+
# add the additional columns on
foreach ( 'include_columns', '+columns' ) {
push @colbits, map {
More information about the Bast-commits
mailing list