stmeyer
stmeyer
I tried this with a TSQL variable in https://github.com/cakephp/cakephp/issues/7765#issuecomment-165080240, but I am not able to remove the IDENTITY and as you @lorenzo said, the solution is complicated.
I'm not shure, if we realy speak about the same. But if you do not have a primary key, it should work. For example, if there is a table in...
This was my final goal in https://github.com/cakephp/cakephp/issues/7765#issuecomment-165080240 :+1: The code from my comment is building this statement **with** the INDENTITY: ``` php protected function _buildInsertPart($parts, $query, $generator) { $table =...
Now it is even more complicated, but all identity columns from the table variable should be removed: ``` php protected function _buildInsertPart($parts, $query, $generator) { $table = $parts[0]; $talbeParts =...
Any news here?
So, i found it: ``` php /** * Generates the INSERT part of a SQL query * * To better handle concurrency and low transaction isolation levels, * we also...
@lorenzo Writing a different compilier sounds good to me. With the following SQL one can check if there are enabled trigger on a table: ``` sql SELECT count(*) as QuantityOfTriggers...
Instead of checking by query if there are enabled triggers to one table, it could be an option to make the compiler configurable. If no compiler is configurated, the standard...
It sometimes can be so easy :+1: Thanks for your work and have some nice Christmas days
@kyleweishaupt please check if PR #10490 is fixing this RFC