Relatively Large Change
Posted: Sun Jun 25, 2006 5:05 am
Well, without really consulting anyone, I've decided to make a rather drastic change. (isn't being in charge fun?)
I've decided that CMSMS should work off of an adodb lite or adodb install downloaded without any tweaks. This is on that "things I should've done a year ago" list.
So, tonight I've modified the entire core and "core" modules to work with things that only come in a stock ADODB Lite install. It only comes down basically to 3 things...
1. Use RecordCount instead of RowCount. This is an adodb lite change. Not totally sure why they don't support it, but oh well.
2. DBTimeStamp() now returns time stamps with the single quotes around them. This is a huge deal, because you have to modify each SQL query that uses this thing accordingly. If you're using it in your Execute statement, then you have to either move it in the query string itself, or trim out the single quotes.
3. Datetime fields in your Install/Upgrade calls now have to be DT instead of T.
After i did all this work, I downloaded a stock adodb 4.90 from the net and changed config.php to use it. It didn't flinch, so I think I did an ok job.
I mainly did this for the people who are trying to marry other applications (namely gallery2) into CMSMS but have conflicts with a stock version and hacked version of the adodb libs. This should solve the problem from here on out.
I hope I didn't mess too many module devs up. This change WILL be in 1.0, so modify your modules accordingly.
Thanks!
I've decided that CMSMS should work off of an adodb lite or adodb install downloaded without any tweaks. This is on that "things I should've done a year ago" list.
So, tonight I've modified the entire core and "core" modules to work with things that only come in a stock ADODB Lite install. It only comes down basically to 3 things...
1. Use RecordCount instead of RowCount. This is an adodb lite change. Not totally sure why they don't support it, but oh well.
2. DBTimeStamp() now returns time stamps with the single quotes around them. This is a huge deal, because you have to modify each SQL query that uses this thing accordingly. If you're using it in your Execute statement, then you have to either move it in the query string itself, or trim out the single quotes.
3. Datetime fields in your Install/Upgrade calls now have to be DT instead of T.
After i did all this work, I downloaded a stock adodb 4.90 from the net and changed config.php to use it. It didn't flinch, so I think I did an ok job.
I mainly did this for the people who are trying to marry other applications (namely gallery2) into CMSMS but have conflicts with a stock version and hacked version of the adodb libs. This should solve the problem from here on out.
I hope I didn't mess too many module devs up. This change WILL be in 1.0, so modify your modules accordingly.
Thanks!