$self->_resolve;
my $attrs = { %{ $self->{_attrs} } };
- if ($attrs->{distinct} && (my $group_by = $attrs->{group_by} || $attrs->{select})) {
+ if (my $group_by = delete $attrs->{group_by}) {
delete $attrs->{having};
my @distinct = (ref $group_by ? @$group_by : ($group_by));
# todo: try CONCAT for multi-column pk
--
-- Created by SQL::Translator::Producer::SQLite
--- Created on Sat May 20 01:05:10 2006
+-- Created on Tue May 23 21:10:54 2006
--
BEGIN TRANSACTION;
);
--
--- Table: treelike
---
-CREATE TABLE treelike (
- id INTEGER PRIMARY KEY NOT NULL,
- parent integer NOT NULL,
- name varchar(100) NOT NULL
-);
-
---
-- Table: tags
--
CREATE TABLE tags (
sub run_tests {
my $schema = shift;
-plan tests => 59;
+plan tests => 60;
# figure out if we've got a version of sqlite that is older than 3.2.6, in
# which case COUNT(DISTINCT()) doesn't work