diff --git a/src/MigrationTool/SqlMigrationTool.php b/src/MigrationTool/SqlMigrationTool.php
index <HASH>..<HASH> 100644
--- a/src/MigrationTool/SqlMigrationTool.php
+++ b/src/MigrationTool/SqlMigrationTool.php
@@ -47,7 +47,7 @@ abstract class SqlMigrationTool extends AbstractMigrationTool
     protected function createMigrationTable()
     {
         /** @noinspection SqlNoDataSourceInspection,SqlDialectInspection */
-        if (false === $this->phpDataObject()->exec("SELECT null FROM {$this->migrationTableName()} LIMIT 1")) {
+        if (false === $this->phpDataObject()->prepare("SELECT null FROM {$this->migrationTableName()} LIMIT 1")) {
             /** @noinspection SqlNoDataSourceInspection,SqlDialectInspection */
             $result = $this->phpDataObject()->exec(
                 "CREATE TABLE IF NOT EXISTS {$this->migrationTableName()}" .
Fixed general error: <I> Cannot execute queries while other unbuffered queries are active.