I don’t see any documentation or core code to specifically address Insert … On Duplicate update…
So is the only alternative to write a strait DB::query(); call?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, this is not supported by the QB.
Currently the FuelPHP Query Builder has a generic SQL generator, independent of the target platform, so it can generate ANSI SQL only. ON DUPLICATE KEY is MySQL specific.
For version 2.0, the entire Query Builder is being rewritten at the moment to support platform specific SQL dialects. Support for this specific statement is however not on the roadmap.