Pavel Terentyev
Pavel Terentyev
Got the same problem. In my case this file was locked by daemon tools. Dunno why. After DT deletion everything worked fine.
But null values in bind leads to mysql error. Mismatch count of bind values and params in query string. Is it proper behavior?
If you drop null values from bind you should drop relevant placeholders from query to avoid errors
fluentpdo is not an ORM. It's query builder. Too much logic in query builder is evil. What if null is default value for my column? What if there is need...
`(new Query($pdo))->insert('table',['name'=>'newName','ref'=>null])->execute();` Will lead to sql error. `insert into table (name, ref) values (?,?)` Query is ok. Bind is `['newName']`. This leads to bind count error If you drop null...