Improved DB + PostgreSQL support
This commit is contained in:
parent
5106cc5ba3
commit
c90c292629
26 changed files with 186 additions and 147 deletions
|
|
@ -28,11 +28,11 @@ class BuildMetaStore extends BuildMetaStoreBase
|
|||
*/
|
||||
public function getErrorsForUpgrade($limit)
|
||||
{
|
||||
$query = 'SELECT * FROM build_meta
|
||||
WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\', \'technical_debt - data\')
|
||||
ORDER BY id ASC LIMIT :limit';
|
||||
$query = 'SELECT * FROM {{build_meta}}
|
||||
WHERE {{meta_key}} IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\', \'technical_debt - data\')
|
||||
ORDER BY {{id}} ASC LIMIT :limit';
|
||||
|
||||
$stmt = Database::getConnection('read')->prepare($query);
|
||||
$stmt = Database::getConnection('read')->prepareCommon($query);
|
||||
|
||||
$stmt->bindValue(':limit', $limit, \PDO::PARAM_INT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue