[Phpmyadmin-devel] relation.lib.php PMA_getComments()

Sebastian Mendel lists at sebastianmendel.de
Tue Oct 2 20:11:08 CEST 2007


Marc Delisle schrieb:
> Sebastian Mendel a écrit :
>> Marc Delisle schrieb:
>>> Sebastian Mendel a écrit :
>>>> Hi,
>>>>
>>>> marc, in PMA_getComments() you iterate over the result from
>>>>
>>>> SELECT `comment`
>>>> FROM ' . PMA_backquote($cfgRelation['db']) . '.' .
>>>> PMA_backquote($cfgRelation['column_info']) . '
>>>> WHERE db_name     = \'' . PMA_sqlAddslashes($db) . '\'
>>>> AND table_name  = \'\'
>>>> AND column_name = \'(db_comment)\'';
>>> Sebastian,
>>> no, the code iterates over the results contained in $com_rs which has 2 
>>> possible sources: the query you mention and another one that can have 
>>> many rows because it retrieves all the column comments for one table.
>> oh, yes, of course, i was ... confused ... by my own changes ... ;-)
>>
>> but now we can drop the part where we get column comments from PMA db?
>>
> 
> I think so. But this means that if a user upgrades from a MySQL version 
> that did not support column comments, he has to use PMA 2.11 so that the 
> column comments are migrated to native comments.

yes, but we can provide some update script ...


> This brings to another question: should we drop the pmadb-based column 
> comments feature in PMA 3?

i thought so, is there any need for this (with MySQL 5)?


-- 
Sebastian




More information about the Developers mailing list