|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-04 07:17 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Description: ------------ If whitespace exists in front of a query when using the ingres_query function the query type will not be determined properly. Reproduce code: --------------- Patch to fix this issue: --- /home/troal01/Download/ingres-2.0.1/ingres.c 2008-12-20 03:36:17.000000000 -0500 +++ ingres.c 2009-01-07 15:03:27.000000000 -0500 @@ -1689,6 +1689,13 @@ } } + /*Remove any leading white space*/ + while(isspace(*query)) + { + query++; + query_len--; + } + /* determine what sort of query is being executed */ query_type = php_ii_query_type(query TSRMLS_CC);