Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 299535 Details for
Bug 399739
dev-db/libdbi-drivers-0.8.3 fails to return column information for empty sqlite3 table
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libdbi-drivers-0.8.3-sqlite3-fix
libdbi-drivers-0.8.3-sqlite3-fix.patch (text/plain), 734 bytes, created by
Patrick
on 2012-01-22 15:39:40 UTC
(
hide
)
Description:
libdbi-drivers-0.8.3-sqlite3-fix
Filename:
MIME Type:
Creator:
Patrick
Created:
2012-01-22 15:39:40 UTC
Size:
734 bytes
patch
obsolete
>--- libdbi-drivers-0.8.3-1.orig/drivers/sqlite3/dbd_sqlite3.c 2008-03-03 12:32:26.000000000 -0500 >+++ libdbi-drivers-0.8.3-1/drivers/sqlite3/dbd_sqlite3.c 2012-01-22 09:52:00.548705668 -0500 >@@ -130,6 +130,7 @@ > const char *encoding; > > int timeout; >+ dbi_result dbi_result; > > /* initialize error stuff */ > conn->error_number = 0; >@@ -227,7 +228,13 @@ > timeout = 0; > } > >- sqlite3_busy_timeout(sqcon, timeout); >+ sqlite3_busy_timeout(sqcon, timeout); >+ >+ /* this is required to make SQLite work like other database engines >+ in that it returns the column information even if there are no >+ rows in a result set */ >+ dbi_result = dbd_query(conn, "PRAGMA empty_result_callbacks=1"); >+ > > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 399739
: 299535