Re: cvs: pear /DB/DB common.php ibase.php mssql.php mysql.php mysql4.php oci8.php odbc.php pgsql.php sybase.php

From: Date: Fri, 02 Jan 2004 16:49:45 +0000
Subject: Re: cvs: pear /DB/DB common.php ibase.php mssql.php mysql.php mysql4.php oci8.php odbc.php pgsql.php sybase.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-15277@lists.php.net to get a copy of this message
On Fri, Jan 02, 2004 at 08:41:39AM +0800, Alan Knowles wrote: > > I would expect this to return '$str'; > .. I asked it to be quoted, but In the above code it didnt get quoted... > > I'm not keen to see quote do this much magic, - adding an extra method > called typequote, or something for this would infer that it does more > that just quote strings. > > It also means there is considerably less code for general quoting.. The quote() methods already had functionality to differentiate between data types. I just made it work correctly in more DBMS's. The main method in common.php differentiates between nulls and not. The MySQL, ODBC, PostgreSQL -- if not more -- had complete data type handling. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.cvs (#15277) next »