New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuilt query is bad #301
Comments
In The test does not pass and the ParameterDefinition detects another parameter public function testParseComplex()
{
$parser = new Parser(
//'CREATE DEFINER=`root`@`%` PROCEDURE `$a`(IN `$a` INT)' . "\n" . ' NO SQL' . "\n" . 'SELECT $a'
);
$component = ParameterDefinition::parse(
$parser,
$this->getTokensList('CREATE DEFINER=`root`@`%` PROCEDURE `foo`( $foo int )')
);
var_dump($component);
$this->assertEquals('$foo', $component[0]->name);
} |
@Tithugues Would you want to have a look at this one ? |
@williamdes , is there any unit test written with this test case please? (Even marked as skipped for now or incomplete.) I'll see if I find any time to fix this. Thank you. |
@Tithugues no, only the code I pasted here needs to be used to create new tests Thank you :) |
🤞 |
I had to update some unit tests:
I hope this will be OK. There are many unit tests on this project. And no one broke with this modification. |
@Tithugues The commit seems right but I would add one more check in the test to be sure there is only one Long story short, a new assertion would be great to be sure only one ParameterDefinition` is found.
|
Signed-off-by: William Desportes <williamdes@wdes.fr>
The text was updated successfully, but these errors were encountered: