Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2013-05-24 16:00:59 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2013-05-24 16:00:59 +0400
commit650a8cdda3fb03d18e069083ba420894a925ea6c (patch)
treebe6d3f7d8e40272a1e3abe11cf66d39b52391ecb /tbl_change.php
parentcf1869905e55314199a47332fa71bcf193350158 (diff)
Convert database interface to a class
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tbl_change.php b/tbl_change.php
index a318316839..48fa95889b 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -137,8 +137,8 @@ $analyzed_sql = PMA_Table::analyzeStructure($db, $table);
/**
* Get the list of the fields of the current table
*/
-PMA_DBI_selectDb($db);
-$table_fields = array_values(PMA_DBI_getColumns($db, $table));
+$GLOBALS['dbi']->selectDb($db);
+$table_fields = array_values($GLOBALS['dbi']->getColumns($db, $table));
$paramTableDbArray = array($table, $db);
@@ -286,7 +286,7 @@ foreach ($rows as $row_id => $current_row) {
= PMA_Util::extractColumnSpec($column['Type']);
if (-1 === $column['len']) {
- $column['len'] = PMA_DBI_fieldLen($current_result, $i);
+ $column['len'] = $GLOBALS['dbi']->fieldLen($current_result, $i);
// length is unknown for geometry fields,
// make enough space to edit very simple WKTs
if (-1 === $column['len']) {