-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
Big commit, have to check if there are any BC issues. I realize you like creating abstractions for non-algorithmically interesting code blocks, so I'll defer to the cr-team on that stuff. Personally, I like shallower stack traces when I am having to debug through stuff, especially something as simple as the workflow you created for on resolving parameter containers. But that is my personal preference. As for some of the rest, it looks ok- considering the size, it might take some time to get to. |
@ralphschindler Can you set a milestone on this, please? |
@@ -199,4 +198,65 @@ protected function processSubSelect(Select $subselect, PlatformInterface $platfo | |||
} | |||
return $sql; | |||
} | |||
|
|||
protected function resolveColumnValue($column, PlatformInterface $platform, DriverInterface $driver = null, $namedParameterPrefix = null, ParameterContainer $parameterContainer = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc block, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On all new methods...
This looks good, and like it may offer some performance improvements due to reduced algorithmic complexity and duplication of records. |
@turrsis Ping me when the docblocks are in place, and I'll merge. |
@weierophinney the docblocks added |
@weierophinney please, see this #6262 (this is reduced algorithmic too). Or add new commit to current PR? |
@weierophinney Can you merge this (docblocks are in place)? |
Added new commits (step 6 - step 9), and change PR description |
Added new commits (step 10 - step 11) |
remove $driver from IF which switch between getSqlString() and prepareStatement() algorithm
…ush to ParameterContainer directly
…from Platform decorators, unification name of the $subject variable
- move $this->processInfo['paramPrefix'] to AbstractSql class - AbstractSql::resolveColumnValue() - move $namedParameterPrefix parameter to last position
…use this is Select::processJoins() dublicate
moved to functions :
AbstractSql::resolveColumnValue
)$this->table
(AbstractSql::resolveTable
)$parameterContainer
(AbstractSql::resolveParameterContainer
)Insert
reorganized because :$columns
and$values
is redundant,$columns
only is enoughAbstractSql::processExpression
andAbstractSql::processSubSelect
: do more readableAdded new commits (step 6 - step 9):
$driver
and$parameterContainer
forprocess...
methods.ParameterContainer
directly - this remove excessParameterContainer::merge()
calls and simplificate code