From:             direvus at gmail dot com
Operating system: Debian Linux
PHP version:      5.0.4
PHP Bug Type:     Feature/Change Request
Bug description:  Alternative pg_query_params returning query

Description:
------------
pg_query_params is a neat function, and I think it would be useful to have
a separate function which resolves the statement (makes all the parameter
substitutions) and then returns the completed SQL statement string, rather
than immediately executing it and returning the result set.

You could, for example, have pg_resolve_params return the query string,
and then have pg_query_params which essentially returns pg_query(
pg_resolve_params( [...args...] ) );

Thoughts?

BJ


-- 
Edit bug report at http://bugs.php.net/?id=32977&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32977&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32977&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32977&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32977&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32977&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32977&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32977&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32977&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32977&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32977&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32977&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32977&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32977&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32977&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32977&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32977&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32977&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32977&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32977&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32977&r=mysqlcfg

Reply via email to