List:MySQL and Perl« Previous MessageNext Message »
From:Ruslan U. Zakirov Date:August 25 2004 10:47am
Subject:[PATCH][RESUBMIT] mysql_db_quote + UTF8 flagged strings
View as plain text  
		Hello.
I didn't get any feedback on patch, but it is still major problem for 
users of UTF8 strings cause we have to workaround DBD::mysql behavior.

Attached patch fix problems for users of perl5.8.x when somebody try 
quote strings with UTF8 flag enabled:

$new_str = $dbh->quote( $utf_str ); # new_str lost UTF flag.

DBD::mysql doesn't preserve UTF8 flag. This is wrong because in future 
if you try to join quoted string with another UTF string then quoted 
part would be corrupted.

This patch fix DBD::mysql quote sub which should copy UTF8 flag if it is 
was set on src str.

				Best regards. Ruslan.

PS. May be PERL_VERSION check should be changed to right values, I don't 
know when exactly UTF8 flag was introduced.

Attachment: [application/aegis-patch] mysql_quote_utf_fix.patch
Thread
[PATCH][RESUBMIT] mysql_db_quote + UTF8 flagged stringsRuslan U. Zakirov25 Aug
  • Re: [PATCH][RESUBMIT] mysql_db_quote + UTF8 flagged stringsRudy Lippan25 Aug
    • Re: [PATCH][RESUBMIT] mysql_db_quote + UTF8 flagged stringsRuslan U. Zakirov25 Aug