Skip to content
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

NOW() function makes parsing to fail #3

Closed
GoogleCodeExporter opened this issue Mar 23, 2016 · 2 comments
Closed

NOW() function makes parsing to fail #3

GoogleCodeExporter opened this issue Mar 23, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

SELECT NOW();

or 

SELECT test1
FROM table1
WHERE test_date < NOW();

I get a blank page showing this error :

Fatal error: Cannot use string offset as an array in 
H:\Project\Openflyers30\classes\PHPSQLParser.php on line 1145

For any SQL queries where I've "NOW()", the parser always fails.

Original issue reported on code.google.com by johnny.c...@gmail.com on 5 Jan 2011 at 9:40

@GoogleCodeExporter
Copy link
Author

Thank you for your report.  It seems there is a problem with functions that do 
not accept any parameters.

I'll investigate and incorporate a fix.

For now, I've added a (failing) test to the test suite.

Original comment by greenlion@gmail.com on 4 Feb 2011 at 8:46

  • Changed state: Accepted
  • Added labels: Priority-Critical
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

This is now fixed in SVN.  

Original comment by greenlion@gmail.com on 21 Mar 2011 at 7:21

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant