[php-src] Issue #11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt
| From: | CViniciusSDias | Date: | Tue, 20 Jun 2023 16:12:27 +0000 |
| Subject: | [php-src] Issue #11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244758@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11492
Author: CViniciusSDias
### Description
The following code:
```php
<?php
<?php
$db = new PDO("sqlite::memory:");
$db->exec('CREATE TABLE test (field1 VARCHAR(10))');
$db->exec('INSERT INTO test VALUES("test")');
$result = $db->query('SELECT * FROM test t1 LEFT JOIN test t2 ON t1.field1 =
t2.field1');
$meta1 = $result->getColumnMeta(0);
$meta2 = $result->getColumnMeta(1);
var_dump(!empty($meta1['table']) && $meta1['table'] ==
'test');
var_dump(!empty($meta2['table']) && $meta2['table'] ==
'test');
```
Resulted in this output:
```
bool(false)
bool(false)
```
But I expected this output instead:
```
bool(true)
bool(true)
```
### PHP Version
PHP 8.3.0-dev
### Operating System
Ubuntu 20.04.6 LTS