Welcome Guest, Not a member yet? Register   Sign In
Using stored functions in Active Record
#2

[eluser]Alexxz[/eluser]
First type of hack I've found is use comments in unqoted field names like this
Code:
$set = array(  
    'changed = NOW() /* ' => '',
    ' */ , value' => 'new value',
    );
this produces
Code:
changed = NOW() /* = '', */ , value = 'new value'
but it is not elegant way to solve this problem.


Messages In This Thread
Using stored functions in Active Record - by El Forum - 12-17-2007, 12:57 AM
Using stored functions in Active Record - by El Forum - 12-17-2007, 02:06 AM
Using stored functions in Active Record - by El Forum - 12-17-2007, 08:43 AM
Using stored functions in Active Record - by El Forum - 10-06-2008, 01:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB