2 Jul 2007 14:08
DBD::mysql retrieving column collation
John ORourke <john-perl <at> o-rourke.org>
2007-07-02 12:08:02 GMT
2007-07-02 12:08:02 GMT
Hi folks, I've written a schema sync script which allows me to make schema updates on multiple servers without disturbing data, and I've just added the ability to check column types but can't see what the collation type is from a DBD::mysql statement handle! Is it possible to retrieve a column's collation from a statement handle? I need to know if a column is binary or not - eg. 'varchar(255) binary' or just 'varchar(255)' I'm about to resort to parsing the output of 'show create table' as I can't see any other way! cheers John -- -- MySQL Perl Mailing List For list archives: http://lists.mysql.com/perl To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules <at> m.gmane.org
I guess that would
impact performance a bit, though.
>
>regards,
>
>Patrick
>
>Paul DuBois wrote:
>
>>At 6:59 AM +0100 7/6/07, John ORourke wrote:
>>
>>>Paul DuBois wrote:
>>>
>>>>If you resort to parsing SHOW output, you might find the output of
>>>>SHOW COLUMNS easier to deal with, because it's in row-and-column
>>>>format. SHOW FULL COLUMNS displays an additional Collation column,
>>>
>>>Thanks! I wasn't aware of SHOW FULL COLUMNS.
>>>
RSS Feed