Commit e24b652a authored by Alexander Butenko's avatar Alexander Butenko

More real example of func

parent 1d874621
......@@ -30,8 +30,8 @@ $data = Array(
'login' => 'admin',
'firstName' => 'John',
'lastName' => 'Doe',
'fullName' => $db->func('CONCAT(firstName,?,lastName)',Array (" ")),
// fullname = CONCAT(firstName,"",lastName)
'password' => $db->func('SHA1(?)',Array ("secretpassword+salt")),
// password = SHA1('secretpassword+salt')
'createdAt' => $db->now(),
// createdAt = NOW()
'expires' => $db->now('+1Y')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment