Skip to content

Commit

Permalink
Some more missing renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed May 26, 2013
1 parent 8b8d1f8 commit 5c9941a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion schema_export.php
Expand Up @@ -52,7 +52,7 @@
if (! isset($export_type) || ! preg_match('/^[a-zA-Z]+$/', $export_type)) {
$export_type = 'pdf';
}
PMA_DBI_selectDb($db);
$GLOBALS['dbi']->selectDb($db);

$path = PMA_securePath(ucfirst($export_type));
if (!file_exists('libraries/schema/' . $path . '_Relation_Schema.class.php')) {
Expand Down
6 changes: 3 additions & 3 deletions server_plugins.php
Expand Up @@ -40,15 +40,15 @@
FROM data_dictionary.plugins p
JOIN data_dictionary.modules m USING (module_name)
ORDER BY m.module_name, p.plugin_type, p.plugin_name";
$res = PMA_DBI_query($sql);
$res = $GLOBALS['dbi']->query($sql);
$plugins = array();
$modules = array();
while ($row = PMA_DBI_fetchAssoc($res)) {
while ($row = $GLOBALS['dbi']->fetchAssoc($res)) {
$plugins[$row['plugin_type']][] = $row;
$modules[$row['module_name']]['info'] = $row;
$modules[$row['module_name']]['plugins'][$row['plugin_type']][] = $row;
}
PMA_DBI_freeResult($res);
$GLOBALS['dbi']->freeResult($res);

// sort plugin list (modules are already sorted)
ksort($plugins);
Expand Down
2 changes: 1 addition & 1 deletion server_status_variables.php
Expand Up @@ -28,7 +28,7 @@
);

if (in_array($_REQUEST['flush'], $_flush_commands)) {
PMA_DBI_query('FLUSH ' . $_REQUEST['flush'] . ';');
$GLOBALS['dbi']->query('FLUSH ' . $_REQUEST['flush'] . ';');
}
unset($_flush_commands);
}
Expand Down
10 changes: 5 additions & 5 deletions tbl_chart.php
Expand Up @@ -28,8 +28,8 @@
$sql_with_limit = 'SELECT * FROM( ' . $sql_query . ' ) AS `temp_res` LIMIT '
. $_REQUEST['pos'] . ', ' . $_REQUEST['session_max_rows'];
$data = array();
$result = PMA_DBI_tryQuery($sql_with_limit);
while ($row = PMA_DBI_fetchAssoc($result)) {
$result = $GLOBALS['dbi']->tryQuery($sql_with_limit);
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
$data[] = $row;
}

Expand Down Expand Up @@ -102,9 +102,9 @@

$data = array();

$result = PMA_DBI_tryQuery($sql_query);
$fields_meta = PMA_DBI_getFieldsMeta($result);
while ($row = PMA_DBI_fetchAssoc($result)) {
$result = $GLOBALS['dbi']->tryQuery($sql_query);
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
$data[] = $row;
}

Expand Down
6 changes: 3 additions & 3 deletions tbl_get_field.php
Expand Up @@ -32,23 +32,23 @@
);

/* Select database */
if (!PMA_DBI_selectDb($db)) {
if (!$GLOBALS['dbi']->selectDb($db)) {
PMA_Util::mysqlDie(
sprintf(__('\'%s\' database does not exist.'), htmlspecialchars($db)),
'', ''
);
}

/* Check if table exists */
if (!PMA_DBI_getColumns($db, $table)) {
if (!$GLOBALS['dbi']->getColumns($db, $table)) {
PMA_Util::mysqlDie(__('Invalid table name'));
}

/* Grab data */
$sql = 'SELECT ' . PMA_Util::backquote($transform_key)
. ' FROM ' . PMA_Util::backquote($table)
. ' WHERE ' . $where_clause . ';';
$result = PMA_DBI_fetchValue($sql);
$result = $GLOBALS['dbi']->fetchValue($sql);

/* Check return code */
if ($result === false) {
Expand Down
8 changes: 4 additions & 4 deletions tbl_gis_visualization.php
Expand Up @@ -27,9 +27,9 @@
}

// Execute the query and return the result
$result = PMA_DBI_tryQuery($sql_query);
$result = $GLOBALS['dbi']->tryQuery($sql_query);
// Get the meta data of results
$meta = PMA_DBI_getFieldsMeta($result);
$meta = $GLOBALS['dbi']->getFieldsMeta($result);

// Find the candidate fields for label column and spatial column
$labelCandidates = array(); $spatialCandidates = array();
Expand Down Expand Up @@ -58,10 +58,10 @@

// Convert geometric columns from bytes to text.
$modified_query = PMA_GIS_modifyQuery($sql_query, $visualizationSettings);
$modified_result = PMA_DBI_tryQuery($modified_query);
$modified_result = $GLOBALS['dbi']->tryQuery($modified_query);

$data = array();
while ($row = PMA_DBI_fetchAssoc($modified_result)) {
while ($row = $GLOBALS['dbi']->fetchAssoc($modified_result)) {
$data[] = $row;
}

Expand Down
12 changes: 6 additions & 6 deletions tbl_zoom_select.php
Expand Up @@ -61,9 +61,9 @@
$extra_data = array();
$row_info_query = 'SELECT * FROM `' . $_REQUEST['db'] . '`.`'
. $_REQUEST['table'] . '` WHERE ' . $_REQUEST['where_clause'];
$result = PMA_DBI_query($row_info_query . ";", null, PMA_DBI_QUERY_STORE);
$fields_meta = PMA_DBI_getFieldsMeta($result);
while ($row = PMA_DBI_fetchAssoc($result)) {
$result = $GLOBALS['dbi']->query($row_info_query . ";", null, PMA_DBI_QUERY_STORE);
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
// for bit fields we need to convert them to printable form
$i = 0;
foreach ($row as $col => $val) {
Expand Down Expand Up @@ -138,9 +138,9 @@
$sql_query .= ' LIMIT ' . $maxPlotLimit;

//Query execution part
$result = PMA_DBI_query($sql_query . ";", null, PMA_DBI_QUERY_STORE);
$fields_meta = PMA_DBI_getFieldsMeta($result);
while ($row = PMA_DBI_fetchAssoc($result)) {
$result = $GLOBALS['dbi']->query($sql_query . ";", null, PMA_DBI_QUERY_STORE);
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
//Need a row with indexes as 0,1,2 for the getUniqueCondition
// hence using a temporary array
$tmpRow = array();
Expand Down

0 comments on commit 5c9941a

Please sign in to comment.