diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-03 10:15:54 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-03 10:15:54 +0200 |
commit | 39111585a2f8e40e72bdc662eb8b2e3c19e93615 (patch) | |
tree | 85250717b29d7b41a228d63b805dcd107e838f3f /ext/pdo_sqlite/sqlite_statement.c | |
parent | 2a7d628adce5528a3e8e41ddbf5cbedcfb3ba461 (diff) | |
download | php-git-39111585a2f8e40e72bdc662eb8b2e3c19e93615.tar.gz |
Report len as -1 instead of INT_MAX
Per docs it should be -1. And would be on 32-bit systems, but
not on 64-bit systems.
Diffstat (limited to 'ext/pdo_sqlite/sqlite_statement.c')
-rw-r--r-- | ext/pdo_sqlite/sqlite_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 63f2d5d80c..a8723da640 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -286,7 +286,7 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno) str = sqlite3_column_name(S->stmt, colno); stmt->columns[colno].name = zend_string_init(str, strlen(str), 0); - stmt->columns[colno].maxlen = 0xffffffff; + stmt->columns[colno].maxlen = SIZE_MAX; stmt->columns[colno].precision = 0; switch (sqlite3_column_type(S->stmt, colno)) { |