|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-05-03 11:52 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Package: PDO_SQLITE
+Package: *General Issues
-Assigned To:
+Assigned To: cmb
[2021-05-03 11:52 UTC] cmb@php.net
[2021-05-16 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ PHP5.2 PDO_SQLite1.0.1 SQLite3.3.7 PECL Module version 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $ SQLite Library 3.3.7undefined I use PDO_SQLite 5.1.1. This module is so useful. But I'm problem about I can't execute "ATTACH DATABASE". When I execute following snippet,I get following message. And I couldn't find "db2"table in sqlite_master table. Now, I think the function "ATTACH" is bugged or unimplemented yet. So..I'll feel happy if you would fix it :) Reproduce code: --------------- $pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); $pdo->query("ATTACH DATABASE 'db2.sqlite3' AS db2;"); $stmt=$pdo->query('select * from db2.foo;'); while($result = $stmt->fetch(PDO::FETCH_ASSOC)){ var_dump($result); } Expected result: ---------------- Output data about db2.foo. Actual result: -------------- string(64) "SQLSTATE[HY000]: General error: 1 no such table: db2.foo"