Fabio B. Silva
2e90cd9924
Identity function support composite primary key
2012-12-22 10:36:23 -02:00
Fabio B. Silva
b6b493f450
test parentheses
2012-12-21 10:00:40 -02:00
Fabio B. Silva
eda43c77bb
Fix DDC-2208
2012-12-21 10:00:40 -02:00
Fabio B. Silva
2104ae9935
fix DDC-2205
2012-12-20 23:06:30 -02:00
Francisco Facioni
9c59ed5891
regression fix for left joins (double ON)
2012-11-20 12:30:52 -03:00
Gordon Stratton
9e916a2893
Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED.
...
In SqlWalker::walkJoin(), SqlWalker::walkRangeVariableDeclaration() can be
called which may produce an 'ON' clause if the entity inheritance type is
JOINED. As walkJoin() may then produce another ON clause, this results in
invalid SQL (e.g. '... ON foo = bar ON (baz = quux) ...' when the inheritance
type is JOINED.
This adds a test and a fix for the problem, by checking for an inheritance type
of JOINED in walkJoin() and using AND instead of ON in the appropriate place.
It seems like this part of the code is begging to be refactored. This is my
first foray into Doctrine internals and can't see a way to do this without
stomping all over the rest of the code, but this section seems ripe for cleanup
by somebody who is familiar.
2012-11-05 01:19:25 -08:00
Fabio B. Silva
4dca27962e
support multiple operators
2012-09-29 16:19:01 -03:00
Fabio B. Silva
f0403a5394
test literal values
2012-09-29 16:19:00 -03:00
Fabio B. Silva
e5e45a3a5c
test sql generation
2012-09-29 16:18:59 -03:00
Fabio B. Silva
2b403b7dad
basic support refactory
2012-09-29 16:18:58 -03:00
Fabio B. Silva
0e60c50c5e
small code refactoring
2012-09-29 16:18:56 -03:00
Fabio B. Silva
0c1a8cd43f
sql generation
2012-09-29 16:18:56 -03:00
Fabio B. Silva
ee7b5da64a
start work
2012-09-29 16:18:56 -03:00
Fabio B. Silva
b6b35d9482
test quote join variable
2012-06-18 14:43:00 -03:00
Fabio B. Silva
f335f23145
tests for quoted columns metadata
2012-06-18 14:42:56 -03:00
Fabio B. Silva
d49a968d55
tests for DDC-1719
2012-06-18 14:42:53 -03:00
Alexander
e7dfa08756
[PoC] Arbitrary join support
2012-06-18 17:00:37 +02:00
Martin Hasoň
3d852397db
DDC-1802 removed unnecessary tokens T_SIZE and T_MOD
2012-05-02 19:10:21 +02:00
Martin Hasoň
3ab6ad23ad
DDC-1802 fixed parsing: FunctionDeclaration "NOT" ("LIKE" | "IN" | "BETWEEN")
2012-05-02 19:08:27 +02:00
Fabio B. Silva
e46275e80d
remove case expressions and functions support
2012-03-12 20:26:40 -03:00
Fabio B. Silva
797c9cf70e
supports simple math operator
2012-03-12 20:26:39 -03:00
Fabio B. Silva
df0632258a
Order by clause support case expressions
2012-03-12 20:26:38 -03:00
Fabio B. Silva
ce9643bce1
Order by clause support functions
2012-03-12 20:26:38 -03:00
Guilherme Blanco
7954386705
DDC-1696 Allowed Strings to be used inside of Case expressions. It seems this fixes other misterious use cases not yet identified by us.
2012-03-11 21:14:08 -04:00
Benjamin Eberlei
79d9c07652
[DDC-1693] Fix fatal errors in DQL when using Optimistic or None lock modes. Added tests.
2012-03-11 22:29:20 +01:00
Benjamin Eberlei
1bbd52b8ee
[DDC-1652] Fix SqlWalker to include foreign key identifiers in SQL SELECT statement no matter what the meta column setting is suggesting.
2012-02-20 17:48:34 +01:00
Guilherme Blanco
febfe35c23
Added coverage for DDC-1529.
2012-01-18 23:51:11 -05:00
Guilherme Blanco
9f3967d65d
Merge pull request #245 from milokmet/DDC-1572
...
[DDC-1572] Allow LIKE pattern to be a function or path expression
2011-12-30 20:17:38 -08:00
Miloslav Kmet
ae4321b4e3
[DDC-1572] Allow LIKE pattern to be a function or path expression
2011-12-29 19:51:48 +01:00
Fabio B. Silva
bf8924df14
some tests
2011-12-29 14:47:23 -02:00
Fabio B. Silva
4cc61bf2ee
fix DDC-1557
2011-12-29 14:30:29 -02:00
Fabio B. Silva
24dc74a800
Fixed DDC-1539
2011-12-20 10:31:00 -02:00
Fabio B. Silva
5c89d7ffcb
support for bit comparison
2011-12-19 16:24:16 -02:00
Guilherme Blanco
0380d5ae58
Implemented multiple enhancements in InExpression support for DQL. Fixed DDC-1472 and DDC-1416.
2011-12-04 02:41:54 -05:00
Guilherme Blanco
2f6b930a8d
Implemented missing support in CollectionMemberComparison. Removed old todo in ArrayHydrator. Finished implementation of IdentificationVariable in ArithmeticPrimary.
2011-12-03 15:19:21 -05:00
Guilherme Blanco
2642daa438
Fixed DDC-1236: GROUP BY now supports ResultVariable and IdentificationVariable. Composite PK is also supported. If you are willing to group by an aggregate function or a function itself, just place it in SELECT expression then refer to it in the GROUP BY clause. If you are not willing to have the function being part of your resultset, just mark the column as HIDDEN and you are done.
2011-12-01 23:52:35 -05:00
jsor
16aa558292
Remove sql conversion from where clauses and update statements
2011-11-21 15:08:36 +01:00
Jan Sorgalla
6f35679911
Initial implementation of Doctrine\DBAL\Types\Type::convertToDatabaseValueSQL() and Doctrine\DBAL\Types\Type::convertToPHPValueSQL() integration
2011-11-19 00:35:29 +01:00
Fabio B. Silva
aeb2ab132b
group by all fields when entity has foreign keys
2011-11-15 20:27:45 -02:00
Benjamin Eberlei
2d14be86f3
Merge pull request #192 from FabioBatSilva/DDC-1474
...
DDC-1474
2011-11-15 12:10:19 -08:00
Fabio B. Silva
08edf34057
move tests to SelectSqlGenerationTest
2011-11-15 17:27:17 -02:00
Fabio B. Silva
3dd5d14977
Fixed DDC-1430
2011-11-15 14:28:57 -02:00
Guilherme Blanco
3c31d88810
Major optimizations in SqlWalker code, reducing overhead, reducing lookahead checks.
2011-11-03 02:44:50 -02:00
Benjamin Eberlei
64d405f7dd
Merge origin/master into DDC-1384
2011-10-30 12:12:18 +01:00
Benjamin Eberlei
50e028212d
DDC-1384 - Fix a bunch of Oracle test failures
2011-10-29 20:42:44 +02:00
Guilherme Blanco
0ec2cc557f
Implemented support to entities with association marked as @Id support in many situations. Fixed DDC-1435.
2011-10-29 02:00:35 -02:00
Guilherme Blanco
3745e948c6
Made SimpleSelectExpression (Literal) be included as a scalar result. More general SQL Walker optimizations.
2011-10-28 14:25:12 -02:00
Guilherme Blanco
1f06e9fca5
Fixed issue with SimpleSelectExpression containing Literals. This issue is related to a previously fixed ticket DDC-1079.
2011-10-28 12:56:14 -02:00
Alexander
079e2b1302
[DDC-1384] Fix for generating sql with aliases not longer than MaxIdentifierLength
2011-10-22 16:27:56 +02:00
Guilherme Blanco
33bcf7ad6f
Added coverage to DDC-1161.
2011-10-16 01:42:36 -02:00