|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57434 SQL "ATTACH DATABASE" not work.
Submitted: 2006-12-16 11:00 UTC Modified: 2021-05-16 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ono_matope at hotmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.2.0 RC4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ono_matope at hotmail dot com
New email:
PHP Version: OS:


 [2006-12-16 11:00 UTC] ono_matope at hotmail dot com

PECL Module version 	1.0.1 $Id: pdo_sqlite.c,v 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->query("ATTACH DATABASE 'db2.sqlite3' AS db2;");
$stmt=$pdo->query('select * from;');
while($result = $stmt->fetch(PDO::FETCH_ASSOC)){

Expected result:
Output data about

Actual result:
string(64) "SQLSTATE[HY000]: General error: 1 no such table:" 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-03 11:52 UTC]
-Status: Open +Status: Feedback -Package: PDO_SQLITE +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2021-05-03 11:52 UTC]
Is this still an issue with any of the actively supported PHP

[1] <>
 [2021-05-16 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 23:01:27 2023 UTC