mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Fixing test by calling it a known limit. We keept the test failing as a reminder to think about how to handle BIT(32) and up but none of us has an idea. Thinks work fine up to BIT(31) - the limitation should be documented.
This commit is contained in:
parent
47b209a3cd
commit
9afd024715
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ Fetching BIT column values using the PS API
|
|||
printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
|
||||
$host, $user, $db, $port, $socket);
|
||||
|
||||
for ($bits = 1; $bits < 64; $bits++) {
|
||||
/* NOTE: works only for up to 31 bits! This limitation should be documented. */
|
||||
for ($bits = 1; $bits < 32; $bits++) {
|
||||
$max_value = pow(2, $bits) - 1;
|
||||
$tests = 0;
|
||||
if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue