Skip to content

Commit

Permalink
Fixes for Quoter (#121)
Browse files Browse the repository at this point in the history
Fixes for Quoter.
  • Loading branch information
darkdef committed Sep 2, 2022
1 parent e40c7eb commit 09db963
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConnectionPDO.php
Expand Up @@ -77,7 +77,7 @@ public function getQueryBuilder(): QueryBuilderInterface
public function getQuoter(): QuoterInterface
{
if ($this->quoter === null) {
$this->quoter = new Quoter('`', '`', $this->getTablePrefix());
$this->quoter = new Quoter('`', '`', $this->getTablePrefix(), $this->getActivePDO());
}

return $this->quoter;
Expand Down
8 changes: 8 additions & 0 deletions tests/Fixture/sqlite.sql
Expand Up @@ -12,6 +12,7 @@ DROP TABLE IF EXISTS "order_with_null_fk";
DROP TABLE IF EXISTS "category";
DROP TABLE IF EXISTS "customer";
DROP TABLE IF EXISTS "profile";
DROP TABLE IF EXISTS "quoter";
DROP TABLE IF EXISTS "type";
DROP TABLE IF EXISTS "null_values";
DROP TABLE IF EXISTS "negative_default_values";
Expand All @@ -37,6 +38,13 @@ CREATE TABLE "profile" (
PRIMARY KEY (id)
);

CREATE TABLE "quoter" (
id INTEGER NOT NULL,
name varchar(16) NOT NULL,
description varchar(128) NOT NULL,
PRIMARY KEY (id)
);

CREATE TABLE "customer" (
id INTEGER NOT NULL,
email varchar(128) NOT NULL,
Expand Down

0 comments on commit 09db963

Please sign in to comment.