Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-2
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)