Skip to content

Commit 3ebc88e

Browse files
author
Michael Meskes
committed
Fixed array checking code for "unsigned long long" datatypes in libecpg.
1 parent 74d8c95 commit 3ebc88e

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy