Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GROUP BY more than one column #2

Closed
twocolors opened this issue May 3, 2015 · 2 comments
Closed

GROUP BY more than one column #2

twocolors opened this issue May 3, 2015 · 2 comments

Comments

@twocolors
Copy link

#!/usr/bin/env perl

use strict;
use warnings;

use feature ':5.10';

use SQL::Composer;

my $expr = SQL::Composer::Select->new(
    from     => 'table',
    columns  => ['a', 'b'],
    group_by => ['foo', \'CEILING(num)']
);

say $expr->to_sql;

when use

Not a SCALAR reference at /Users/free/.perl5/lib/perl5/SQL/Composer/Select.pm line 67.
vti pushed a commit that referenced this issue May 3, 2015
@vti
Copy link
Owner

vti commented May 3, 2015

Try it!

vti pushed a commit that referenced this issue May 3, 2015
Changelog diff is:

diff --git a/Changes b/Changes
index b917e5c..e04d7a7 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,12 @@ Revision history for Perl extension SQL-Composer

 {{$NEXT}}

+0.10 2015-05-03T07:19:30Z
+
+    - support multiple group by #GH-2
+    - make join population recursive
+    - allow overwriting rel name
+
 0.09 2014-11-30T08:27:45Z

     - allow order by as is values
@twocolors
Copy link
Author

thx

vti pushed a commit that referenced this issue Jun 16, 2015
Changelog diff is:

diff --git a/Changes b/Changes
index e04d7a7..364e8df 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,11 @@ Revision history for Perl extension SQL-Composer

 {{$NEXT}}

+0.11 2015-06-16T18:06:19Z
+
+    - functions
+    - limit and offset 0 #GH-3
+
 0.10 2015-05-03T07:19:30Z

     - support multiple group by #GH-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants