Skip to content

Commit

Permalink
fixed postgre builder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Aug 23, 2019
1 parent 5f811ba commit fa0bf1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/Database/Postgre/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

use CodeIgniter\Database\BaseBuilder;
use CodeIgniter\Database\Exceptions\DatabaseException;
use http\Encoding\Stream\Inflate;

/**
* Builder for Postgre
Expand Down Expand Up @@ -178,7 +179,7 @@ public function decrement(string $column, int $value = 1)
*
* @return string
*/
protected function _insertBatch($table, $keys, $values)
protected function _insertBatch(string $table, array $keys, array $values) : string
{
return 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values) . $this->compileIgnore('insert');
}
Expand All @@ -196,7 +197,7 @@ protected function _insertBatch($table, $keys, $values)
*
* @return string
*/
protected function _insert($table, array $keys, array $unescapedKeys)
protected function _insert(string $table, array $keys, array $unescapedKeys) : string
{
return 'INSERT INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')' . $this->compileIgnore('insert');
}
Expand Down

0 comments on commit fa0bf1d

Please sign in to comment.