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
path: root/test
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-02 01:21:30 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-10 23:18:16 +0300
commit684b4bed1ad751cab9c7d673de6824e6c402d24a (patch)
tree921b0a1181f30ea4421a1c1742daf74f3f0bfc58 /test
parent2826b6b328dea467bb8a368d3a5fa96523ef173f (diff)
Finished replacing the old parser in DisplayResults.
Updated sql-parser library. Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/classes/PMA_DisplayResults_test.php32
1 files changed, 10 insertions, 22 deletions
diff --git a/test/classes/PMA_DisplayResults_test.php b/test/classes/PMA_DisplayResults_test.php
index 9c69a6b004..3485a80bf1 100644
--- a/test/classes/PMA_DisplayResults_test.php
+++ b/test/classes/PMA_DisplayResults_test.php
@@ -1240,30 +1240,18 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase
*/
public function dataProviderForTestSetHighlightedColumnGlobalField()
{
+ $parser = new SqlParser\Parser(
+ 'SELECT * FROM db_name WHERE `db_name`.`tbl`.id > 0 AND `id` < 10'
+ );
return array(
array(
+ array('statement' => $parser->statements[0]),
array(
- 'analyzed_sql' => array(),
+ 'db_name' => 'true',
+ 'tbl' => 'true',
+ 'id' => 'true',
),
- array()
),
- array(
- array(
- 'analyzed_sql' => array(
- 0 => array(
- 'where_clause_identifiers' => array(
- 0 => '`id`',
- 1 => '`id`',
- 2 => '`db_name`'
- )
- )
- ),
- ),
- array(
- '`id`' => 'true',
- '`db_name`' => 'true'
- )
- )
);
}
@@ -1576,7 +1564,7 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase
* @param string $default_function the default transformation function
* @param string $transform_options the transformation parameters
* @param boolean $is_field_truncated is data truncated due to LimitChars
- * @param array $analyzed_sql the analyzed query
+ * @param array $analyzed_sql_results the analyzed query
* @param integer $dt_result the link id associated to the query
* which results have to be displayed
* @param integer $col_index the column index
@@ -1590,7 +1578,7 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase
$protectBinary, $column, $class, $meta, $map,
$_url_params, $condition_field, $transformation_plugin,
$default_function, $transform_options, $is_field_truncated,
- $analyzed_sql, $dt_result, $col_index, $output
+ $analyzed_sql_results, $dt_result, $col_index, $output
) {
$_SESSION['tmpval']['display_binary'] = true;
$_SESSION['tmpval']['display_blob'] = false;
@@ -1604,7 +1592,7 @@ class PMA_DisplayResults_Test extends PHPUnit_Framework_TestCase
array(
$column, $class, $meta, $map, $_url_params, $condition_field,
$transformation_plugin, $default_function, $transform_options,
- $is_field_truncated, $analyzed_sql, &$dt_result, $col_index
+ $is_field_truncated, $analyzed_sql_results, &$dt_result, $col_index
)
)
);