mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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.
This commit is contained in:
parent
2a7d628adc
commit
39111585a2
2 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue