Location: PHPKode > scripts > PHP SQL Parser > PHP-SQL-Parser/testsuite/tests/parser/issue60.php
<?php
require_once(dirname(__FILE__) . '/../../../php-sql-parser.php');
require_once(dirname(__FILE__) . '/../../test-more.php');

# the resultset defines password as function instead of colref

$sql = "SELECT id, password
FROM users";
$parser = new PHPSQLParser($sql, true);
$p = $parser->parsed;
ok($p['SELECT'][1]['position'] == 11, 'wrong usage of keyword password');
Return current item: PHP SQL Parser