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
Guilherme Blanco
7d7287a1ba
Merge pull request #434 from bamarni/filter-objects
...
allowed to pass filter objects to the configurator
2012-11-02 17:52:23 -07:00
Guilherme Blanco
ec1950d3ca
Merge pull request #448 from stefanklug/master-parserFix
...
Fixed Parser problem for SELECT (((3))) as ....
2012-11-02 17:46:43 -07:00
Vaughn Clayton
ae30ce4596
[DDC-2113] Surround WHERE clause with parens if using SQLFilter
2012-11-02 08:48:57 -04:00
Martin Hasoň
7f33143502
Added NOT LIKE expression
2012-10-25 12:58:19 +02:00
Guilherme Blanco
38d8c7f0d9
Merge pull request #467 from docteurklein/fix-bool-type-binding
...
add bool detection when inferring type
2012-10-21 18:39:29 -07:00
jakoch
d4a6c488ca
fixed use statements
2012-10-12 13:53:20 +02:00
Klein Florian
7f8af83b5b
add bool detection when inferring type
2012-10-10 11:20:41 +02:00
Stefan Klug
bf54c22cd9
removed unneded variable
2012-10-08 14:01:04 +02:00
Stefan Klug
1e1f34f9cb
cleanup ScalarExpression
...
_isFunction doesn't exclude subselects anymore
2012-10-08 13:59:54 +02:00
Stefan Klug
6ccf7a7ac7
fixed Parser which incorrectly treated ((( as function
2012-10-08 13:57:34 +02:00
yohang
adc3d21385
Fixed typo on ConcatFunction
2012-10-08 12:44:36 +02:00
Benjamin Eberlei
235ad8e553
[DDC-2052] Add SqlWalker::setQueryComponent() to allow modification of the query component in a custom output walker
2012-10-06 11:16:16 +02:00
Benjamin Eberlei
a0440b63bb
Merge pull request #462 from doctrine/DDC-2055
...
[DDC-2055] Generate SELECT clause from ResultSetMappingBuilder
2012-10-05 09:46:37 -07:00
Benjamin Eberlei
a47359e3f5
[DDC-2055] Fix CS
2012-10-04 20:18:10 +02:00
Benjamin Eberlei
913377e31b
[DDC-2055] Add support to generate entity result parts of the SELECT clause from a ResultSetMappingBuilder instance. Add support for column incrementing.
2012-10-03 12:35:14 +02:00
Fabio B. Silva
dd984c7319
remove extra line
2012-09-29 16:19:03 -03:00
Fabio B. Silva
5f89fa4190
fix CS
2012-09-29 16:19:03 -03:00
Fabio B. Silva
7c754e495e
support namespace alias
2012-09-29 16:19:03 -03:00
Fabio B. Silva
1bd6e841bf
Fix some CS
2012-09-29 16:19:02 -03:00
Fabio B. Silva
de93983dff
assume entity namespace when not given
2012-09-29 16:19:02 -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
af2f556fd3
small refactory
2012-09-29 16:18:59 -03:00
Fabio B. Silva
b19e4a6440
support arithmetic expression and aggregate functions
2012-09-29 16:18:58 -03:00
Fabio B. Silva
88f04b5ebd
parse nested new operators
2012-09-29 16:18:58 -03:00
Fabio B. Silva
2b403b7dad
basic support refactory
2012-09-29 16:18:58 -03:00
Fabio B. Silva
0fbb78e61a
basic support, need some code refactory and improvements
2012-09-29 16:18:57 -03:00
Fabio B. Silva
ed89695a8c
collect new object parameters
2012-09-29 16:18:57 -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
Konstantin Kuklin
34d8843fd6
improve phpdoc
2012-09-21 03:20:06 +04:00
Bilal Amarni
a9b4debe37
allowed to pass filter objects to the configurator
2012-09-03 10:52:46 +02:00
Benjamin Eberlei
9c682efb2f
Merge pull request #431 from pitiflautico/patch-1
...
[ORM] Fix double semicolon
2012-08-29 05:33:12 -07:00
Kirill chEbba Chebunin
e68807ad4f
Change version for QueryExpressionVisitor
2012-08-29 16:00:02 +04:00
Daniel Perez Pinazo
5b8ead9db8
[ORM] Fix double semicolon
2012-08-29 13:40:36 +03:00
Kirill chEbba Chebunin
1c2f2b5c13
Store QueryExpressionVisitor parameters as array
2012-08-20 20:28:22 +04:00
Kirill chEbba Chebunin
148789600a
Remove unnecessary else statements after if with return in QueryExpressionVisitor
2012-08-20 20:27:14 +04:00
Kirill chEbba Chebunin
c6b3899c2d
Add QueryBuilder::addCriteria() for Criteria - QueryBuilder bridge
2012-08-20 20:27:03 +04:00
FabioBatSilva
641af15280
Fix DDC-1977
2012-08-15 22:57:21 +02:00
Michael Moravec
79a04b295f
[DDC-1961] Fixed parameter type support in Parameter
2012-07-31 21:01:21 +02:00
Marco Pivetta
aa0cb0b6d7
DDC-1939 - Removing references to non-existing AssociationMapping class
2012-07-24 11:37:57 +02:00
Benjamin Eberlei
12cddf20e3
[DDC-1900] Throw exception when overwriting internal function.
2012-07-05 21:52:40 +02:00
Guilherme Blanco
cb72219b11
Merge pull request #372 from FabioBatSilva/DDC-1845
...
[DDC-1845] QuoteStrategy
2012-06-24 20:36:54 -07:00
Fabio B. Silva
d3d97e7ef8
remove svn markers
2012-06-19 15:27:41 -03:00
Fabio B. Silva
e25987df3a
remove svn markers from AST
2012-06-19 15:17:08 -03:00
Guilherme Blanco
921f5c7680
Fixed license.
2012-06-19 11:04:00 -03:00
Guilherme Blanco
2703a2b27c
Fixed issue with merge.
2012-06-18 15:23:12 -04:00
Fabio B. Silva
7800a7ef3f
wrong indentation
2012-06-18 15:31:20 -03:00
Fabio B. Silva
85b6f8dc2f
change quote strategy to interface
2012-06-18 14:43:00 -03:00
Fabio B. Silva
b6b35d9482
test quote join variable
2012-06-18 14:43:00 -03:00
Fabio B. Silva
4ef3d99770
use quote strategy in SizeFunction, MultiTableDeleteExecutor, MultiTableUpdateExecutor, and SchemaTool
2012-06-18 14:42:56 -03:00
Fabio B. Silva
db53b8651c
apply quote strategy at sqlwalker
2012-06-18 14:42:53 -03:00
Fabio B. Silva
d49a968d55
tests for DDC-1719
2012-06-18 14:42:53 -03:00
Fabio B. Silva
1bcda5147a
inject quote strategy into sql walker
2012-06-18 14:42:53 -03:00
Guilherme Blanco
41a650b699
Updated PoC for multiple components DQL support.
2012-06-18 17:01:52 +02:00
Alexander
e7dfa08756
[PoC] Arbitrary join support
2012-06-18 17:00:37 +02:00
Olivier Dolbeau
79a9ce5000
Add some corrections
2012-06-05 21:32:53 +02:00
Olivier Dolbeau
7ca0ac289e
Remove tabs & trailing spaces
2012-06-05 15:46:10 +02:00
Olivier Dolbeau
c98f9117c2
Remove unused use
2012-06-05 15:39:52 +02:00
Guilherme Blanco
1635e0af4b
[DDC-1840] Implemented parameters as a collection.
2012-05-28 12:16:42 -04:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Guilherme Blanco
f54f8f8a95
Fixed anomalous bug of temporary existance table collision in case of any update/delete issue by dropping temp table, no matter what's the result of other executes.
2012-05-23 00:55:05 -04:00
Guilherme Blanco
d05ad996c4
Implemented support for internal exception showing DQL that contains syntax or semantical error.
2012-05-21 16:34:27 -04: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
52c49b444e
test multiple entity results
2012-04-15 15:40:43 -03:00
Fabio B. Silva
fdc9fdae3e
refactory ResultSetMappingBuilder#addNamedNativeQueryMapping into small submethods
2012-04-15 15:40:41 -03:00
Fabio B. Silva
68665af6e8
test discriminator column
2012-04-15 15:40:41 -03:00
Fabio B. Silva
0cc2583a02
test scalar result
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f813223036
test joined one-to-many and one-to-one
2012-04-15 15:40:40 -03:00
Fabio B. Silva
f018a56d6d
test native query with result class
2012-04-15 15:40:40 -03:00
Fabio B. Silva
015ea809b0
added support for resultClass and empty fields
2012-04-15 15:39:22 -03:00
Fabio B. Silva
bfc7986b20
annotation driver and basic support
2012-04-15 15:39:22 -03:00
Fabio B. Silva
449d8a66ad
changed modifiers
2012-03-25 13:00:50 -03:00
Fabio B. Silva
0f9afbdf0a
Fix DDC-1686
2012-03-25 00:30:58 -03:00
Benjamin Eberlei
ab15528fde
Fix CS: AS => as in foreach loops.
2012-03-24 11:16:32 +01:00
Hugo Hamon
16da74d1da
[Query] removed unused private _peekBeyond() method from Parser class.
2012-03-24 11:07:44 +01:00
Hugo Hamon
5a1c1e55ef
[Query] removed unused local variables in Parser class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
43eebe1a8b
[Query] removed unused local variable $lexer in SizeFunction class.
2012-03-24 11:07:39 +01:00
Hugo Hamon
19602d0a26
[Query] removed unused local variable $platform in IdentityFunction class.
2012-03-24 11:07:39 +01:00
Benjamin Eberlei
7d7edbbd4a
Merge pull request #288 from FabioBatSilva/DDC-775
...
DDC 775
2012-03-22 14:00:48 -07:00
Benjamin Eberlei
18f1d56b60
[DDC-1683] Fix bug with booleans not handled by Expr#literal() in query builder.
2012-03-14 20:49:25 +01:00
Fabio B. Silva
84b31714a6
fix indentation
2012-03-12 22:07:43 -03: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
0a78f7bc11
[DDC-1695] Fix bug in SQL Walker array hydration with escaped fields.
2012-03-11 23:27:51 +01: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
Guilherme Blanco
1a192b6530
Moved SQRT function to Platform.
2012-03-03 23:10:56 -05: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
Thomas Rabaix
8027fca378
Add SqlWalker::HINT_DISTINCT constant
2012-01-25 00:03:40 +01:00
Thomas Rabaix
d9bb861b1f
Fix DDC-1618 - add more check before throwing an iterateWithFetchJoinNotAllowed exception
2012-01-25 00:03:40 +01:00
Guilherme Blanco
fdb2b9c655
Optimized scalar type mapping support.
2012-01-16 14:26:13 -05:00
Guilherme Blanco
ea14bcff4a
Fixed DDC-657. Added type conversion to scalar result.
2012-01-13 20:46:59 -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
Fabio B. Silva
ab4482b617
update docblock
2011-12-29 17:05:44 -02:00