select * from -> we do not need
Posted: Tue May 13, 2008 2:05 pm
While trying to solve an issue in this topic http://forum.cmsmadesimple.org/index.ph ... #msg106408 I have found some "select * from " queries in the core. Here is the list:
File class.contentoperations.inc.php
function GetDefaultPageId
replace select * from... with
select content_id from...
function GetPageIDFromAlias
replace select * from... with
select content_id from...
function CheckAliasError
replace select * from... with
select content_alias from...
File modtemplates.inc.php
function cms_module_ListTemplates
replace select * from... with
select template_name from...
function cms_module_GetTemplate
replace select * from... with
select content from...
I do not know if it is something that will be corrected in CMSMS 2.0. If yes just ignore
File class.contentoperations.inc.php
function GetDefaultPageId
replace select * from... with
select content_id from...
function GetPageIDFromAlias
replace select * from... with
select content_id from...
function CheckAliasError
replace select * from... with
select content_alias from...
File modtemplates.inc.php
function cms_module_ListTemplates
replace select * from... with
select template_name from...
function cms_module_GetTemplate
replace select * from... with
select content from...
I do not know if it is something that will be corrected in CMSMS 2.0. If yes just ignore
