From: Norbert Csongradi Date: Mon, 18 Sep 2006 18:12:34 +0000 (+0200) Subject: Added limit_dialect info (no magic because of DBD::Multi driver). X-Git-Tag: v0.08010~43^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30804c8a2ba329c41b13093b3d184a4f7874d6f3;p=dbsrgits%2FDBIx-Class.git Added limit_dialect info (no magic because of DBD::Multi driver). --- diff --git a/lib/DBIx/Class/Storage/DBI/Replication.pm b/lib/DBIx/Class/Storage/DBI/Replication.pm index 42c3170..791559f 100644 --- a/lib/DBIx/Class/Storage/DBI/Replication.pm +++ b/lib/DBIx/Class/Storage/DBI/Replication.pm @@ -23,6 +23,10 @@ DBIx::Class::Storage::DBI::Replication - Replicated database support [ "dbi:mysql:database=test;hostname=slave2", "username", "password", { priority => 10 } ], # slave2 <...> ] ); + # If you use LIMIT in your queries (effectively, if you use SQL::Abstract::Limit), + # do not forget to set up limit_dialect (see: perldoc SQL::Abstract::Limit) + # DBIC can not set it up automatically, since DBD::Multi could not be supported directly + $schema->limit_dialect( 'LimitXY' ) # For MySQL =head1 DESCRIPTION