Comments (10)
Hmm, I've written : There is no data "RESULT" into the array.
It should be corrected to : There is no data "RESULT" or "VALUES" into the
array.
Original comment by [email protected]
on 9 May 2011 at 2:04
from php-sql-parser.
Thanks for the report. I'll look into this ASAP.
Original comment by [email protected]
on 9 May 2011 at 6:38
- Changed state: Started
- Added labels: Priority-High
- Removed labels: Priority-Medium
from php-sql-parser.
Here is a simple fix. Move case 'VALUES' into its own category, and check if
the next token is blank before consuming two tokens:
[code]
case 'VALUES':
$token_category = $upper;
if($tokens[$token_number+1]=="")
continue 2;
else
continue;
break;
[/code]
Original comment by [email protected]
on 20 Oct 2011 at 3:24
from php-sql-parser.
Just in case this isn't clear how to fix. Around line 334 in the source code,
you see a list of case statements like this:
case 'SELECT':
case 'ORDER':
case 'LIMIT:
...
find the "case 'VALUES'" and remove it, and make a new section between the
following "break;" statement and the next new "case" statement (as in case
'DELETE')). That new section should contain the code pasted in my previous
comment.
Hope this helps!
Original comment by [email protected]
on 20 Oct 2011 at 3:44
from php-sql-parser.
Solved in current version on http://www.phosco.info/php-sql-parser_current.zip
Original comment by [email protected]
on 2 Feb 2012 at 8:24
from php-sql-parser.
[email protected], this also doesn't appear to have been implemented in the link
provided above.
Original comment by [email protected]
on 5 Mar 2012 at 10:39
from php-sql-parser.
I have added a test for the this issue (see file insert.php in directory "t").
The test is okay, so it seems, that the solution works.
Try the repository on https://www.phosco.info/publicsvn/php-sql-parser
I have no commit rights on the original codebase, so I provide the changes on
my own Subversion.
Original comment by [email protected]
on 5 Mar 2012 at 12:10
from php-sql-parser.
I confirm that code provided by "[email protected]" fixed my issue.
Original comment by [email protected]
on 7 Mar 2012 at 2:40
from php-sql-parser.
I confirm that code provided by "[email protected]" fixed my issue, at least for
long text. About blob, I didn't test it yet.
Original comment by [email protected]
on 7 Mar 2012 at 2:42
from php-sql-parser.
I have accepted the contribution which fixes this bug.
Original comment by [email protected]
on 12 Mar 2012 at 9:49
- Changed state: Fixed
from php-sql-parser.
Related Issues (20)
- Support for expressions in ORDER BY clause HOT 1
- Unable to install using composer without svn binary HOT 4
- Use semantic versioning for tags/releases HOT 1
- Missing commas in reference builder HOT 4
- Upper case for AliasBuilder HOT 1
- Fails on comments HOT 3
- Creator can't handle SubQuery in Where clause HOT 2
- PHP Error when parsing SQL containing the REPLACE function HOT 6
- IFNULL(<Column Name>,<Value>) doesn't parsed properly HOT 1
- Can not calculate position of query exception HOT 8
- Position for CLAUSES HOT 8
- Unable to parse large complicated query (parenthesis problem)
- UNION Issues
- Fatal Error, undefined method HOT 1
- Alias for a function without parameters forgotten
- Parser throws uninitialized offsets warning when "REPLACE" MySQL function used in SELECT clause
- join with to_number in on clause HOT 1
- Keywords problem
- Problem with parser and datatables
- Export project to Github HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-sql-parser.