diff --git a/src/Database/Sql/Sqlite.php b/src/Database/Sql/Sqlite.php index fcb36b51a2..267014e54b 100644 --- a/src/Database/Sql/Sqlite.php +++ b/src/Database/Sql/Sqlite.php @@ -130,7 +130,7 @@ public function quoteIdentifier(string $identifier): string public function tables(): array { return [ - 'query' => 'SELECT name FROM sqlite_master WHERE type = "table" OR type = "view"', + 'query' => 'SELECT name FROM sqlite_master WHERE type = \'table\' OR type = \'view\'', 'bindings' => [] ]; } diff --git a/tests/Database/Sql/SqliteTest.php b/tests/Database/Sql/SqliteTest.php index 401f955906..0436f27055 100644 --- a/tests/Database/Sql/SqliteTest.php +++ b/tests/Database/Sql/SqliteTest.php @@ -160,7 +160,7 @@ public function testQuoteIdentifier() public function testTables() { $result = $this->sql->tables(); - $this->assertSame('SELECT name FROM sqlite_master WHERE type = "table" OR type = "view"', $result['query']); + $this->assertSame('SELECT name FROM sqlite_master WHERE type = \'table\' OR type = \'view\'', $result['query']); $this->assertSame([], $result['bindings']); }