-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi again
After further inspection of libmysql sources the conclusion is: - - mysql_real_escape_string() uses MYSQL->charset field from the MYSQL struct - - this field is initilized in mysql_real_connect() - - so after my connection times out I should be able to still use mysql_real_escape_string() having the charset already set from the last mysql_real_connect() PS: please let me know when you mysql devs decide to check for connection to be online on mysql_real_escape_string() :) On Wed, 22 Oct 2003, Mihai RUSU wrote: > Hi > > From the online docs: > "The string in from is encoded to an escaped SQL string, taking into > account the current character set of the connection." > > Lets say I have a connection, setup, working, then it timesout (server > side, ex. because of "wait_timeout" setting). > > When the connection is timed out, if I do mysql_real_escape_string() on it > what should happen ? Fail ? Crash ? > > My question is does mysql_real_escape_string() really needs an active > connection every time its called or can it use data in "MYSQL*" struct > stored from a previous active connection ? > > Thanks > > ---------------------------- > Mihai RUSU Email: [EMAIL PROTECTED] > GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net > "Linux is obsolete" -- AST - ---------------------------- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/lrXsPZzOzrZY/1QRAo93AJ9mYjTBWA7EbwQjQG/UbbytA1MytgCeJuKm P2i1eqZ+OPQArQOptVddtzI= =Jj1n -----END PGP SIGNATURE----- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]