diff options
| author | Michael Meskes | 2016-08-01 04:36:27 +0000 |
|---|---|---|
| committer | Michael Meskes | 2016-08-01 13:08:48 +0000 |
| commit | 295edbecf73eb479257077c4c70e36f55ee6d3ef (patch) | |
| tree | e25df351423143fe8cb0d8ebe10f33b4a5e04052 /src | |
| parent | a216177599928d409d90fe06678e1cc6fb2be234 (diff) | |
Fixed array checking code for "unsigned long long" datatypes in libecpg.
Diffstat (limited to 'src')
| -rw-r--r-- | src/interfaces/ecpg/ecpglib/data.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c index 58b8df271e3..75391ae6d17 100644 --- a/src/interfaces/ecpg/ecpglib/data.c +++ b/src/interfaces/ecpg/ecpglib/data.c @@ -374,8 +374,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno, #ifdef HAVE_STRTOULL case ECPGt_unsigned_long_long: *((unsigned long long int *) (var + offset * act_tuple)) = strtoull(pval, &scan_length, 10); - if ((isarray && *scan_length != ',' && *scan_length != '}') - || (!isarray && !(INFORMIX_MODE(compat) && *scan_length == '.') && *scan_length != '\0' && *scan_length != ' ')) /* Garbage left */ + if (garbage_left(isarray, scan_length, compat)) { ecpg_raise(lineno, ECPG_UINT_FORMAT, ECPG_SQLSTATE_DATATYPE_MISMATCH, pval); return (false); |
