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

$sql = "select a.`admin_id` FROM admins a WHERE a.admin_username=? AND a.admin_password=?";
$parser = new PHPSQLParser($sql, true);
$p = $parser->parsed;
$expected = getExpectedValue(dirname(__FILE__), 'issue68.serialized');
eq_array($p, $expected, 'Parameter alias ? should not fail.');
Return current item: PHP SQL Parser