[TYPO3-core] RFC: enhance UPDATE/INSERT-API

Holzinger Franz franz at fholzinger.com
Tue Jan 3 20:09:44 CET 2006


Hello Martin,

>Problem: Sometimes you want to insert or update data, but some of the values are not strings/numbers but SQL functions. In such a case you cannot use the t3lib_db functions directly.
>
>Solution: Add a new parameter that contains a list of keys NOT to quote. The patch affects the following functions:
>
>
>  
>
This is fine, however

> function INSERTquery($table,$fields_values,$no_quote_fields='')

I would prefer a reference &$no_quote_fields because all the array of
unquoted fields should not be copied onto the stack to make it faster.
But how could this be managed because it should be a default parameter?
Maybe an init function should set this array once.


Greets,

Franz









More information about the TYPO3-team-core mailing list