projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
833733f
)
Fix RowCountOrGenericSubQ dropping group/having/order on the floor (RT#73244)
Peter Rabbitson [Thu, 29 Mar 2012 02:53:28 +0000 (
04:53
+0200)]
lib/DBIx/Class/SQLMaker/LimitDialects.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/SQLMaker/LimitDialects.pm
b/lib/DBIx/Class/SQLMaker/LimitDialects.pm
index
93e9f3f
..
3df6daa
100644
(file)
--- a/
lib/DBIx/Class/SQLMaker/LimitDialects.pm
+++ b/
lib/DBIx/Class/SQLMaker/LimitDialects.pm
@@
-536,9
+536,9
@@
sub _RowCountOrGenericSubQ {
return $self->_GenericSubQ(@_) if $offset;
- return sprintf <<"EOF", $rows, $sql;
+ return sprintf <<"EOF", $rows, $sql, $self->_parse_rs_attrs( $rs_attrs );
SET ROWCOUNT %d
-%s
+%s %s
SET ROWCOUNT 0
EOF
}