|
4.3.2 “读取”查询中:
$this->db->select('url','name','clientid');
$query = $this->db->get('sites');
其中的select语句是错误的,应该是:
$this->db->select('url,name,clientid');具体可见源代码:/**
* Select
*
* Generates the SELECT portion of the query
*
* @access
public
* @param
string
* @return
object
*/
function select($select = '*', $escape = NULL)
{
// Set the global value if this was sepecified
if (is_bool($escape))
{
$this->_protect_identifiers = $escape;
}
if (is_string($select))
{
$select = explode(',', $select);
}
foreach ($select as $val)
{
$val = trim($val);
if ($val != '')
{
$this->ar_select[] = $val;
if ($this->ar_caching === TRUE)
{
$this->ar_cache_select[] = $val;
$this->ar_cache_exists[] = 'select';
}
}
}
return $this;
}
错别字的话还能忍下,但是代码错误就不能原谅了,希望下一版本的时候能改正过来。 |
|