We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c12c158 + 8e2b6c9 commit 2874bf6Copy full SHA for 2874bf6
src/QueryResult.php
@@ -206,10 +206,17 @@ protected function fillRows($rows)
206
case 'INT32':
207
case 'INT64':
208
case 'UINT32':
209
- case 'UINT64':
210
$_row[$column['name']] = (int)($value);
211
break;
212
+ case 'UINT64':
213
+ $value_int = (int)$value;
214
+ if ($value_int === PHP_INT_MAX && PHP_INT_SIZE === 8) {
215
+ $value_int = (int)bcsub($value, '18446744073709551616', 0);
216
+ }
217
+ $_row[$column['name']] = $value_int;
218
+ break;
219
+
220
default:
221
$_row[$column['name']] = $value;
222
}
0 commit comments