[TxMt] mysql bundle, password issues, utf8 encoding
Tench
psychomachine at mac.com
Wed Jul 18 10:42:27 UTC 2007
Just to confirm -- this patch also fixes my problems with non-latin
databases. I hope it will make it into the official release.
On Jul 18, 2007, at 11:09 AM, Kim Hunter wrote:
> Thanks Chris that patch Fixed my problems
>
> Kim
>
> Chris Adams wrote:
>> This diff should take care of this - I'm not familiar enough with
>> the Ruby libraries to know if there's a better place to do this
>> but it's obviously a trivial patch:
>> Index: Support/lib/connectors/mysql.rb
>> ===================================================================
>> --- Support/lib/connectors/mysql.rb (revision 7747)
>> +++ Support/lib/connectors/mysql.rb (working copy)
>> @@ -98,6 +98,7 @@
>> if args[0] != :INIT then
>> real_connect(*args)
>> end
>> + query('SET NAMES utf8;')
>> end
>> def real_connect(host=nil, user=nil, passwd=nil, db=nil,
>> port=nil, socket=nil, flag=nil)
>> Chris
>> ---------------------------------------------------------------------
>> ---
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate at lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list