[TYPO3-dev] Further development of DBAL
bernd wilke
t3ng at bernd-wilke.net
Fri Aug 8 09:01:42 CEST 2014
Am 08.08.14 08:43, schrieb Andreas Fernandez:
> Hello Bernd,
>
> thank you for your reply. That was my first thought, but that would
> bring a heavy breaking change. The new parameter $having must be between
> $groupBy and $orderBy to make sense, but that would break *any* query
> that uses an ORDER or LIMIT statement. IMHO not feasible for the 6.x
> branch. Inserting that parameter in last place could bypass this
> problem, but this suggests that HAVING is inserted after LIMIT.
I think the order of the parameter should not always reflect the order
of the usage. especially if the parameters are used in different
intensity. in this cases the less used a parameter is, the more it
should be placed in the back as it can be neglected and the function
call can be shortened.
like in PHP itself:
mixed mysql_query(string $query[, resource $link_identifier = NULL])
the link_identifier is more important as it identifies the used
database, but as mostly the default Db is used, it is the second
parameter so it can be omitted.
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-dev
mailing list