Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch dbReOpenConfigAttach Excluding Merge-Ins
This is equivalent to a diff from 3c1ad1def9 to e0152697fb
2012-11-20
| ||
20:31 | When db_open_config() is called with the useAttach parameter set to non-zero, it may need to close and reopen the database using ATTACH if that was not done previously. check-in: fb04f27829 user: drh tags: trunk | |
13:46 | Experimental fix for issue [d17d6e5b17]. Should have a LOT more testing before merging it to trunk, because it is dangerous! The method used is as described at: http://cygwin.com/cygwin-ug-net/using-specialnames.html The only problematic characters left are ':' and '\', all other problematic characters are handled by translating the... check-in: 82ce90f91c user: jan.nijtmans tags: ticket-d17d6e5b17 | |
13:42 | Only suppress bad hyperlinks for check-in comments and tickets. Continue to show the broken hyperlinks on wiki pages. check-in: 26ac392308 user: drh tags: trunk | |
08:27 | When db_open_config() is called with the useAttach parameter set to non-zero, it may need to close and reopen the database using ATTACH if that was not done previously. check-in: 66196aa8b7 user: mistachkin tags: th1Hooks | |
08:23 | When db_open_config() is called with the useAttach parameter set to non-zero, it may need to close and reopen the database using ATTACH if that was not done previously. Closed-Leaf check-in: e0152697fb user: mistachkin tags: dbReOpenConfigAttach | |
08:21 | If applicable, use the OPEN_ANY_SCHEMA flag in Th_FossilInit. check-in: 3c1ad1def9 user: mistachkin tags: trunk | |
06:04 | Add 'th1-setup' setting for the optional TH1 script to evaluate after creating and initializing the TH1 interpreter. Revise TH1 integration in preparation for generalized hooks. check-in: b058c8a944 user: mistachkin tags: trunk | |
Changes to src/db.c.
763 763 ** it is convenient for the ~/.fossil to be attached to the main database 764 764 ** connection so that we can join between the various databases. In that 765 765 ** case, invoke this routine with useAttach as 1. 766 766 */ 767 767 void db_open_config(int useAttach){ 768 768 char *zDbName; 769 769 const char *zHome; 770 - if( g.configOpen ) return; 770 + if( g.configOpen ){ 771 + if( useAttach==g.useAttach ) return; 772 + if( g.useAttach ){ 773 + db_detach("configdb"); 774 + }else if( g.dbConfig ){ 775 + sqlite3_close(g.dbConfig); 776 + g.dbConfig = 0; 777 + } 778 + } 771 779 #if defined(_WIN32) 772 780 zHome = fossil_getenv("LOCALAPPDATA"); 773 781 if( zHome==0 ){ 774 782 zHome = fossil_getenv("APPDATA"); 775 783 if( zHome==0 ){ 776 784 char *zDrive = fossil_getenv("HOMEDRIVE"); 777 785 zHome = fossil_getenv("HOMEPATH");