Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs #2908984 and #2579270 in our "query parser"
This "query trivial parser" is in function Postgres.php:executeScript() * about #2908984, we were getting each line of the uploaded file using fgets($fd, 32768); because of PHP 4.3 and bellow that were considering a line has a length of 1024 by default. So we had to set a large value, but it wasn't not large enough here. Since we officialy support PHP 5+, I just removed this max length so PHP keep parsing the line till the end. * about #2579270, that was just a bad test on $in_quote so we were not parsing quoted values correclty, and the -- were catching as comments.
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters