We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea9bbe7 + 672fdf4 commit 901051bCopy full SHA for 901051b
classes/Kohana/ORM.php
@@ -1644,7 +1644,7 @@ public function count_all()
1644
$this->_build(Database::SELECT);
1645
1646
$records = $this->_db_builder->from(array($this->_table_name, $this->_object_name))
1647
- ->select(array(DB::expr('COUNT('.$this->_db->quote_column($this->_primary_key).')'), 'records_found'))
+ ->select(array(DB::expr('COUNT('.$this->_db->quote_column($this->_object_name.'.'.$this->_primary_key).')'), 'records_found'))
1648
->execute($this->_db)
1649
->get('records_found');
1650
0 commit comments