Welcome Guest, Not a member yet? Register   Sign In
Active Record and CURDATE()
#6

[eluser]everdaniel[/eluser]
[quote author="kgill" date="1232059522"]If you want to use built-in functions you're pretty much going to have to abandon active record, anything you send is going to be quoted and treated as a string. Your other option is to modify the driver file and add a line to the _insert and _update functions to replace 'CURDATE()' with CURDATE().[/quote]

You don't need to change any CI core file, as I said, you just need to use the set() method and pass FALSE as the third argument and that's it, CI won't quote the string.


Messages In This Thread
Active Record and CURDATE() - by El Forum - 01-15-2009, 08:23 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 09:27 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 09:46 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:23 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:45 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 10:53 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 11:54 AM
Active Record and CURDATE() - by El Forum - 01-15-2009, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB