Welcome Guest, Not a member yet? Register   Sign In
Insert if not exists possible with CI?
#6

[eluser]Michael Wales[/eluser]
If you turn off db_debug it should roll right on through - like I said, not the most graceful solution but the most efficient (as long as MySQL isn't logging errors).

Otherwise, you can use noctrum's pre-select() or it wouldn't be very hard to modify the Active Record MySQL driver for an insert_or_update() method.


Messages In This Thread
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 08:43 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 08:52 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 09:00 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 09:12 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 09:30 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 10:03 AM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 03:43 PM
Insert if not exists possible with CI? - by El Forum - 02-05-2010, 04:53 PM
Insert if not exists possible with CI? - by El Forum - 02-06-2010, 12:18 AM
Insert if not exists possible with CI? - by El Forum - 02-06-2010, 04:29 PM
Insert if not exists possible with CI? - by El Forum - 02-06-2010, 06:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB