10 years agoActually weaken Converter->sqla_instance ref dq_cdbi_insane
Dagfinn Ilmari Mannsåker [Sun, 19 Jan 2014 16:47:11 +0000]
Actually weaken Converter->sqla_instance ref

10 years agoSupport for undef and/or foreign attributes (e.g. CDBI::Sweet)
Peter Rabbitson [Fri, 17 Jan 2014 06:12:26 +0000]
Support for undef and/or foreign attributes (e.g. CDBI::Sweet)

Extra CDBI insanity (didn't work too well... once I hit _bindargs)

10 years agoFirst cut of a DQ-SQLA trial
Peter Rabbitson [Fri, 17 Jan 2014 03:15:39 +0000]
First cut of a DQ-SQLA trial

10 years agoFix pesky taint xt test fail
Peter Rabbitson [Fri, 17 Jan 2014 01:59:42 +0000]
Fix pesky taint xt test fail

10 years agoReuse the TempExtlib trick from DBIC
Peter Rabbitson [Fri, 17 Jan 2014 01:57:46 +0000]
Reuse the TempExtlib trick from DBIC

10 years agoCheck xt for whitespace too
Peter Rabbitson [Fri, 17 Jan 2014 02:02:00 +0000]
Check xt for whitespace too

10 years agoWe already dep on Moo - CAG is unnecessary
Peter Rabbitson [Fri, 17 Jan 2014 01:39:16 +0000]
We already dep on Moo - CAG is unnecessary

10 years agon::c was introduced in 8b9b83ae but never declared
Peter Rabbitson [Fri, 17 Jan 2014 02:09:59 +0000]
n::c was introduced in 8b9b83ae but never declared

10 years agoMerge branch 'master' into dq
Peter Rabbitson [Fri, 17 Jan 2014 01:07:40 +0000]
Merge branch 'master' into dq

10 years agorelease 1.77 v1.77
Peter Rabbitson [Fri, 17 Jan 2014 01:03:15 +0000]
release 1.77

10 years agoPort tests and extra operator from master 40f2f231
Peter Rabbitson [Fri, 17 Jan 2014 00:40:37 +0000]
Port tests and extra operator from master 40f2f231

10 years agoPort scalarref in array of sources test from dq (7732c37a)
Peter Rabbitson [Thu, 16 Jan 2014 23:39:31 +0000]
Port scalarref in array of sources test from dq (7732c37a)

10 years agoFix regression in column level { not => undef } op
Peter Rabbitson [Thu, 16 Jan 2014 23:14:23 +0000]
Fix regression in column level { not => undef } op

In 3cdadcbe we stopped considering a bare 'not' being an inequality op.
However there is code in the wild relying on this, so add an extra
compat shim (cheap)

10 years agoPort whitespace cleanup from master 428975b0
Peter Rabbitson [Wed, 18 Dec 2013 13:50:36 +0000]
Port whitespace cleanup from master 428975b0

Reducing diffnoise in the upcoming merge

10 years agoFixes for to-be-merged master tests for undef and arrays with various operators
Dagfinn Ilmari Mannsåker [Fri, 3 Jan 2014 16:00:46 +0000]
Fixes for to-be-merged master tests for undef and arrays with various operators

10 years agoThrow exception for invalid BETWEEN args
Dagfinn Ilmari Mannsåker [Fri, 3 Jan 2014 15:04:21 +0000]
Throw exception for invalid BETWEEN args

10 years agoCleanup regexes / reduce captures a bit
Peter Rabbitson [Mon, 6 Jan 2014 14:14:48 +0000]
Cleanup regexes / reduce captures a bit

10 years agoPartially revert brainfart test introduced in 3a507101
Peter Rabbitson [Mon, 6 Jan 2014 13:55:23 +0000]
Partially revert brainfart test introduced in 3a507101

10 years agoCheck for extra warnings, and diag input and output
Dagfinn Ilmari Mannsåker [Fri, 3 Jan 2014 18:26:01 +0000]
Check for extra warnings, and diag input and output

We want to test the _lack_ of warnings as well, and having the input and
output is handy for figuring out what's wrong.

10 years agoDiag input and output for unexpected success
Dagfinn Ilmari Mannsåker [Fri, 3 Jan 2014 15:03:46 +0000]
Diag input and output for unexpected success

10 years agoEnsure that multi-nested parenthesis are never unrolled after IN
Peter Rabbitson [Fri, 3 Jan 2014 16:57:16 +0000]
Ensure that multi-nested parenthesis are never unrolled after IN

This lets us remove parenthesis_significant from many tests that do
not need it, including reversal of 1ba9d0f03

10 years agoParentheses are significant in IN tests
Dagfinn Ilmari Mannsåker [Fri, 27 Dec 2013 14:52:12 +0000]
Parentheses are significant in IN tests

10 years agorelease 1.75 v1.75
Peter Rabbitson [Fri, 27 Dec 2013 04:49:24 +0000]
release 1.75

10 years agoMove simple IN/BETWEEN tests to t/05in_between.t
Dagfinn Ilmari Mannsåker [Thu, 26 Dec 2013 21:27:11 +0000]
Move simple IN/BETWEEN tests to t/05in_between.t

No changes in the actual tests except splitting the empty array and
scalar tests for IN into separate cases.

10 years agoActually use the descriptions in the test cases
Dagfinn Ilmari Mannsåker [Thu, 26 Dec 2013 21:28:27 +0000]
Actually use the descriptions in the test cases

10 years agoAn old (now passing) test for regression introduced in 6f2a5b6
Arthur Axel 'fREW' Schmidt [Fri, 20 Apr 2012 18:46:28 +0000]
An old (now passing) test for regression introduced in 6f2a5b6

10 years agoPort fce4b7a9 from the DQ branch (with warning expectation ammendments)
Dagfinn Ilmari Mannsåker [Fri, 6 Dec 2013 17:24:22 +0000]
Port fce4b7a9 from the DQ branch (with warning expectation ammendments)

10 years agoReintroduce handling of IS( NOT) ops
Peter Rabbitson [Thu, 26 Dec 2013 08:23:06 +0000]
Reintroduce handling of IS( NOT) ops

This is undocumented syntax, but it is very likely someone is using it in
the wild, and the previous inequality op handler rewrite broke this

10 years agoExtensive tests and deprecations of multivalue/no value inequality op calls
Peter Rabbitson [Thu, 26 Dec 2013 05:47:18 +0000]
Extensive tests and deprecations of multivalue/no value inequality op calls

All sql-generation tests match pre <= 1.74 behavior (except for the newly
added rlike operator, which now warns while it simply did not work with
undefs before)

10 years agoMove test to a better location (no changes)
Peter Rabbitson [Thu, 26 Dec 2013 05:28:02 +0000]
Move test to a better location (no changes)

10 years agoNormalize handling of expected warnings/exceptions in tests
Peter Rabbitson [Thu, 26 Dec 2013 05:26:51 +0000]
Normalize handling of expected warnings/exceptions in tests

10 years agoRemove many of the settled-by-time comments, modernize a bit
Peter Rabbitson [Thu, 26 Dec 2013 05:07:25 +0000]
Remove many of the settled-by-time comments, modernize a bit

10 years agoCentralize handling of in-test dumpering
Peter Rabbitson [Thu, 26 Dec 2013 04:29:17 +0000]
Centralize handling of in-test dumpering

10 years agoExtra stopword (we need to find a way to introduce dialects...)
Peter Rabbitson [Sun, 22 Dec 2013 11:36:59 +0000]
Extra stopword (we need to find a way to introduce dialects...)

10 years agoNo tabs, no trailers
Peter Rabbitson [Wed, 18 Dec 2013 13:50:36 +0000]
No tabs, no trailers

10 years agoMake it clearer in examples that bool takes expressions
Peter Rabbitson [Wed, 18 Dec 2013 13:25:05 +0000]
Make it clearer in examples that bool takes expressions

timbunce++

10 years agoTest BETWEEN after the IN debacle (luckily it throws in all expected cases)
Peter Rabbitson [Wed, 18 Dec 2013 10:15:20 +0000]
Test BETWEEN after the IN debacle (luckily it throws in all expected cases)

Generalize the emitted exception text

10 years agoWe already have Storable as a dep, this is pointless
Peter Rabbitson [Wed, 18 Dec 2013 10:20:23 +0000]
We already have Storable as a dep, this is pointless

10 years agoMerge branch 'master' into dq
Peter Rabbitson [Wed, 18 Dec 2013 09:29:56 +0000]
Merge branch 'master' into dq

10 years agoAnd yet more improvements in the parsing engine
Peter Rabbitson [Tue, 17 Dec 2013 23:33:31 +0000]
And yet more improvements in the parsing engine

Streamline the construction of -MISC (gah I hate that name) nodes, and make
sure we do not treat placeholders as list element node terminator

10 years agoDo not yell loudly on TODOified is_same_* tests
Peter Rabbitson [Wed, 18 Dec 2013 08:15:50 +0000]
Do not yell loudly on TODOified is_same_* tests

10 years agoClarify in => undef exception (based on 90c87778)
Dagfinn Ilmari Mannsåker [Sun, 8 Dec 2013 17:01:03 +0000]
Clarify in => undef exception (based on 90c87778)

10 years agoBackport undef-with-in tests from DQ, add "roadwork ahead" exceptions
Peter Rabbitson [Wed, 18 Dec 2013 08:48:36 +0000]
Backport undef-with-in tests from DQ, add "roadwork ahead" exceptions

This is an amalgamation of test changes from 5b67050, 39221d2 and 038b0a7
ilmari++

10 years agoExtra test from the DQ branch (passes in 1.5)
Dagfinn Ilmari Mannsåker [Tue, 3 Dec 2013 17:17:29 +0000]
Extra test from the DQ branch (passes in 1.5)

10 years agoFix duplicate tests for { -in => [ undef ] }
Dagfinn Ilmari Mannsåker [Mon, 9 Dec 2013 13:57:01 +0000]
Fix duplicate tests for { -in => [ undef ] }

10 years agoDisallow { -in => undef }
Dagfinn Ilmari Mannsåker [Sun, 8 Dec 2013 17:01:03 +0000]
Disallow { -in => undef }

It's ambiguous whether the user meant [ undef ] or [], or forgot to
assign to a variable intended to hold an arrayref.

10 years agoHandle undef -> NULL for more operators
Dagfinn Ilmari Mannsåker [Fri, 6 Dec 2013 17:24:22 +0000]
Handle undef -> NULL for more operators

'IS NOT' and 'IS' are not documented in legacy SQLA, but do work.

10 years agoDocument and test non-reference { -in => ... }
Dagfinn Ilmari Mannsåker [Wed, 4 Dec 2013 15:16:13 +0000]
Document and test non-reference { -in => ... }

Also test the documented but untested { -in => [] } optimisation.

10 years agoRemove pointless else after return
Dagfinn Ilmari Mannsåker [Wed, 4 Dec 2013 14:27:37 +0000]
Remove pointless else after return

10 years agoOptimise out AND/OR clause in { -(not_)in => [undef] }
Dagfinn Ilmari Mannsåker [Wed, 4 Dec 2013 14:12:11 +0000]
Optimise out AND/OR clause in { -(not_)in => [undef] }

10 years agoHandle { foo => { -in => [undef, …] } }
Dagfinn Ilmari Mannsåker [Wed, 4 Dec 2013 13:58:06 +0000]
Handle { foo => { -in => [undef, …] } }

It should expand to 'foo IN (…) OR foo IS NULL', and 'foo NOT IN (…)
AND foo IS NOT NULL' for the -not_in case.

10 years agoAllow { -in => $scalar }
Dagfinn Ilmari Mannsåker [Wed, 4 Dec 2013 13:47:20 +0000]
Allow { -in => $scalar }

Although undocumented, the old version will accept and DWIM for this,
so follow suit.

10 years agoFix invalid ORDER BY hash key test
Dagfinn Ilmari Mannsåker [Tue, 3 Dec 2013 17:23:36 +0000]
Fix invalid ORDER BY hash key test

10 years agoFix NOT IN empty list optimisation
Dagfinn Ilmari Mannsåker [Tue, 3 Dec 2013 17:17:29 +0000]
Fix NOT IN empty list optimisation

11 years agoadd Perl operator conversion support
Matt S Trout [Sun, 17 Nov 2013 06:06:12 +0000]
add Perl operator conversion support

11 years agoadd support for nulls => "none" in order nodes
Matt S Trout [Mon, 4 Nov 2013 03:05:08 +0000]
add support for nulls => "none" in order nodes

11 years agohandle DQ node in IN
Matt S Trout [Sat, 2 Nov 2013 17:44:42 +0000]
handle DQ node in IN

11 years agobetter debugging for duff order_by
Matt S Trout [Fri, 1 Nov 2013 08:09:14 +0000]
better debugging for duff order_by

11 years agoimprove identifier regexp in order_by slightly
Matt S Trout [Fri, 1 Nov 2013 08:08:58 +0000]
improve identifier regexp in order_by slightly

11 years agohandle \$dq in order by
Matt S Trout [Sat, 26 Oct 2013 21:20:36 +0000]
handle \$dq in order by

11 years agoonly split identifiers when we have a separator
Matt S Trout [Wed, 9 Oct 2013 14:54:25 +0000]
only split identifiers when we have a separator

11 years agoFix typos in POD and comments (RT#87776)
Dagfinn Ilmari Mannsåker [Mon, 12 Aug 2013 20:03:16 +0000]
Fix typos in POD and comments (RT#87776)

11 years agoMerge branch 'master' into dq
Peter Rabbitson [Sun, 9 Jun 2013 12:20:44 +0000]
Merge branch 'master' into dq

11 years agoKill the plan
Peter Rabbitson [Sun, 9 Jun 2013 11:36:46 +0000]
Kill the plan

11 years agoFinish a RHS branch before applying ASC/DESC mods
Peter Rabbitson [Sun, 9 Jun 2013 11:28:35 +0000]
Finish a RHS branch before applying ASC/DESC mods

11 years agoDisable podcoverage test for the time being
Peter Rabbitson [Fri, 7 Jun 2013 16:28:16 +0000]
Disable podcoverage test for the time being

11 years agorelease 1.74 v1.74
Peter Rabbitson [Tue, 4 Jun 2013 21:06:24 +0000]
release 1.74

11 years agoNo dynamic deps
Peter Rabbitson [Tue, 4 Jun 2013 21:05:40 +0000]
No dynamic deps

11 years agoMake tests pass without Storable
Peter Rabbitson [Tue, 4 Jun 2013 21:02:23 +0000]
Make tests pass without Storable

11 years agoAdded (now passing) test for @@ full text search
Mark A. Stratman [Mon, 3 Dec 2012 18:46:13 +0000]
Added (now passing) test for @@ full text search

11 years agoStop unknown token processing early in case a potential unknown function lies ahead
Peter Rabbitson [Tue, 4 Jun 2013 17:11:20 +0000]
Stop unknown token processing early in case a potential unknown function lies ahead

11 years agoAdd (now passing) reassembly test
Arthur Axel 'fREW' Schmidt [Wed, 17 Oct 2012 14:01:23 +0000]
Add (now passing) reassembly test

11 years agoChange parser to not eagerly slurp RHS expressions it doesn't recognize
Peter Rabbitson [Tue, 4 Jun 2013 16:08:25 +0000]
Change parser to not eagerly slurp RHS expressions it doesn't recognize

11 years agoThe ORDER BY parsing fix in 73835ff0 only worked by accident
Peter Rabbitson [Tue, 4 Jun 2013 15:11:13 +0000]
The ORDER BY parsing fix in 73835ff0 only worked by accident

Remove a number of workarounds introduced before the parser rewrite - none of
them help, and one of them was in fact the reason multi-member ORDER BY
did not function correctly

11 years agoAll roundtrip tests now look for the exact string
Peter Rabbitson [Sun, 2 Jun 2013 15:17:06 +0000]
All roundtrip tests now look for the exact string

Merge test files while at it

11 years agoStop differentiating between ORDER BY foo and ORDER BY foo ASC by default
Peter Rabbitson [Sun, 2 Jun 2013 13:38:35 +0000]
Stop differentiating between ORDER BY foo and ORDER BY foo ASC by default

11 years agoDrop the silly Dumpered bind comparison
Peter Rabbitson [Sun, 2 Jun 2013 12:16:36 +0000]
Drop the silly Dumpered bind comparison

11 years agoPave the road to more global state
Peter Rabbitson [Sat, 1 Jun 2013 20:02:17 +0000]
Pave the road to more global state

(Yes, yes an object is saner, but it means a thought out interface and
all that, and then it means optimization of when and how do we do the
modification passes, and really I am not after this stuff at the moment)

11 years agoRevert "Add support for NULLS FIRST/LAST in ORDER BY"
Dagfinn Ilmari Mannsåker [Sun, 14 Apr 2013 10:53:32 +0000]
Revert "Add support for NULLS FIRST/LAST in ORDER BY"

Despite being an ISO/ANSI SQL feature, it's apparently not supported by
enough databses to have by default.

This reverts commits 2266ca5c0bf34c24ba7fbf6448ad1c34a082f240 and
b137b0744a3aaea3df1ba497345378e9d3f8da40.

11 years agoNormalize the select docs s/$table/$source/
Olaf Alders [Wed, 6 Feb 2013 20:34:35 +0000]
Normalize the select docs s/$table/$source/

11 years agoFix false-negative function comparisons
Peter Rabbitson [Fri, 11 May 2012 04:47:09 +0000]
Fix false-negative function comparisons

11 years agoFix -nulls value case-insensitivity
Dagfinn Ilmari Mannsåker [Tue, 5 Feb 2013 19:14:38 +0000]
Fix -nulls value case-insensitivity

11 years agoFix -nulls value case-insensitivity
Dagfinn Ilmari Mannsåker [Tue, 5 Feb 2013 19:12:46 +0000]
Fix -nulls value case-insensitivity

11 years agoAdd support for NULLS FIRST/LAST in ORDER BY
Dagfinn Ilmari Mannsåker [Sat, 26 Jan 2013 19:55:38 +0000]
Add support for NULLS FIRST/LAST in ORDER BY

11 years agoAdd support for NULLS FIRST/LAST in ORDER BY
Dagfinn Ilmari Mannsåker [Sat, 26 Jan 2013 18:32:09 +0000]
Add support for NULLS FIRST/LAST in ORDER BY

11 years agobreak out base class construction
Matt S Trout [Sat, 1 Dec 2012 21:04:26 +0000]
break out base class construction

12 years agotweak clearer code
Matt S Trout [Sat, 13 Oct 2012 17:19:29 +0000]
tweak clearer code

12 years agoremove all remnants of DQ::Constants
Matt Phillips [Thu, 23 Aug 2012 17:31:05 +0000]
remove all remnants of DQ::Constants

12 years agoPass subtype to Literal() helper directly
Matt Phillips [Fri, 17 Aug 2012 20:32:06 +0000]
Pass subtype to Literal() helper directly

12 years agoUpdate DQ Converter to use new DQ::ExprHelpers
Matt Phillips [Fri, 17 Aug 2012 16:43:15 +0000]
Update DQ Converter to use new DQ::ExprHelpers

Instead of creating DQ structs directly, use the ExprHelpers to handle generation.

12 years agoFix eq_bind checker
Arthur Axel 'fREW' Schmidt [Sat, 28 Jul 2012 17:37:25 +0000]
Fix eq_bind checker

We have to Deepcopy because otherwise we get $VAR->... incorrect failures

12 years agofix arrayref tables to use correct join generation style
Matt S Trout [Sat, 28 Jul 2012 12:45:32 +0000]
fix arrayref tables to use correct join generation style

12 years agorelease 1.73 v1.73
Arthur Axel 'fREW' Schmidt [Tue, 10 Jul 2012 21:22:41 +0000]
release 1.73

12 years agorelease 1.73_01 v1.73_01
Arthur Axel 'fREW' Schmidt [Wed, 30 May 2012 02:05:22 +0000]
release 1.73_01

12 years agofix regression introduced in 6f2a5b6
Arthur Axel 'fREW' Schmidt [Fri, 20 Apr 2012 18:46:28 +0000]
fix regression introduced in 6f2a5b6

12 years agodocument order by madness
Matt S Trout [Mon, 7 May 2012 15:00:59 +0000]
document order by madness

12 years agoStop filling in placeholders in `format-sql`
Arthur Axel 'fREW' Schmidt [Fri, 20 Apr 2012 18:24:11 +0000]
Stop filling in placeholders in `format-sql`

12 years agosimple literals get detected and turned into nodes
Matt S Trout [Fri, 20 Apr 2012 11:36:00 +0000]
simple literals get detected and turned into nodes

12 years agoASC purge: t/06order_by.t
Matt S Trout [Fri, 20 Apr 2012 11:35:08 +0000]
ASC purge: t/06order_by.t

12 years agoless generous literal parsing
Matt S Trout [Fri, 20 Apr 2012 11:19:18 +0000]
less generous literal parsing