Content-Length: 263517 | pFad | http://github.com/postgrespro/postgres/commit/dc6b20c6bed779399ddc8da53de3e1749666a098

6F Fixed array checking code for "unsigned long long" datatypes in libecpg. · postgrespro/postgres@dc6b20c · GitHub
Skip to content

Commit dc6b20c

Browse files
author
Michael Meskes
committed
Fixed array checking code for "unsigned long long" datatypes in libecpg.
1 parent 928e92f commit dc6b20c

File tree

1 file changed

+1
-2
lines changed
  • src/interfaces/ecpg/ecpglib

1 file changed

+1
-2
lines changed

src/interfaces/ecpg/ecpglib/data.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
375375
#ifdef HAVE_STRTOULL
376376
case ECPGt_unsigned_long_long:
377377
*((unsigned long long int *) (var + offset * act_tuple)) = strtoull(pval, &scan_length, 10);
378-
if ((isarray && *scan_length != ',' && *scan_length != '}')
379-
|| (!isarray && !(INFORMIX_MODE(compat) && *scan_length == '.') && *scan_length != '\0' && *scan_length != ' ')) /* Garbage left */
378+
if (garbage_left(isarray, scan_length, compat))
380379
{
381380
ecpg_raise(lineno, ECPG_UINT_FORMAT, ECPG_SQLSTATE_DATATYPE_MISMATCH, pval);
382381
return (false);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/dc6b20c6bed779399ddc8da53de3e1749666a098

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy