pg_query_params seems not working as expected:
this works:
INSERT INTO users (username,password,secretcode) VALUES 'test',crypt(:password,gen_salt(md5)), 'DEFAULT'
secretcode field have a default generated value
This doesn't works:
pg_query_params($Db, 'INSERT INTO users (username,password,secretcode) VALUES ($1, $2, $3)', array ($USR,crypt($PWD,gen_salt(md5)),'DEFAULT');
password field contains the string 'crypt($PWD,gen_salt(md5))'
secretcode field contains 'DEFAULT' string
Is this the correct behavior or a bug ?
Thanks
Dan Perez