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

[eluser]sophistry[/eluser]
[quote author="Michael Wales" date="1265407391"]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.[/quote]

@MW... now you are ex-chieftain you advise CI core hacking?

wouldn't it be "better" (as in more pleasure during core upgrades) to leave the db driver code alone and put the insert_or_update() method in an extended model?

just sayin'


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