Skip to content

Commit

Permalink
Reverting back to a simpler version that works for now
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Apr 14, 2020
1 parent 8f7834f commit cadf2e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions classes/TkiPDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class TkiPDO extends \PDO
{
/** @var string|null **/
protected $table_prefix;
public $table_prefix;

public function __construct(
string $dsn,
Expand All @@ -38,7 +38,7 @@ public function __construct(
parent::__construct($dsn, $user, $password, $driver_options);
}

public function exec($statement): int
public function exec($statement)
{
$statement = $this->tablePrefix($statement);
$rows_affected = parent::exec($statement);
Expand All @@ -52,7 +52,8 @@ public function prepare($statement, $driver_options = array()): \PDOStatement
return $replaced_statement;
}

public function query(string $statement): \PDOStatement

public function query(string $statement)
{
$statement = $this->tablePrefix($statement);
$args = func_get_args();
Expand Down

0 comments on commit cadf2e9

Please sign in to comment.