Closed (fixed)
Project:
Drupal core
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
9 Apr 2005 at 20:50 UTC
Updated:
28 Apr 2005 at 19:15 UTC
Jump to comment: Most recent file
As per my forum posting at http://drupal.org/node/20211 , db_set_active isn't working, and is in fact acting extremely strangely. I've never used it before, so maybe I'm using it wrong, but I've looked at the contributed drupal docs and I believe I have the correct usage.
See http://drupal.org/node/20211 for details.
Jake.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | db_set_active.patch | 760 bytes | chx |
Comments
Comment #1
jakeg commentedThis problem persists and hence is not related to my other problem I had concurrently (http://drupal.org/node/20233) which has now been resolved for me.
Comment #2
jakeg commented[GRRRRR... I just posted a long explanation of this problem only to get Terminated request because of suspicious input data., and when I pressed the back button my response was gone. Damn it!!! That took about half an hour to write and I don't have time to write it all again now]
Comment #3
jakeg commentedsome more detail:
settings.php:
mymodule.module:
... the code above works, but the last line should be, as far as I can understand, db_set_active('default'), but that causes errors. If I ue anything-but-default then it works.
Jake
Comment #4
chx commentedYes. Working on this.
Comment #5
chx commentedComment #6
jakeg commentedlegend
Comment #7
chx commentedSo, two calls to the same server had only resource ID instead of two. This is corrected.
Comment #8
dries commentedCommitted to HEAD and DRUPAL-4-6. Thanks.
Comment #9
(not verified) commented