                     t.column("d", .text)
                     t.column("e", .text)
                 }
-                XCTAssertEqual(self.lastSQLQuery,
-                    "CREATE TABLE \"child\" (" +
+                XCTAssertEqual(
+                    self.lastSQLQuery,
+                    ("CREATE TABLE \"child\" (" +
                         "\"c\" TEXT, " +
                         "\"d\" TEXT, " +
                         "\"e\" TEXT, " +
                         "FOREIGN KEY (\"c\", \"d\") REFERENCES \"parent\"(\"a\", \"b\") ON DELETE CASCADE ON UPDATE CASCADE, " +
                         "FOREIGN KEY (\"d\", \"e\") REFERENCES \"parent\"(\"b\", \"a\") ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED" +
-                    ")")
+                        ")") as String)
             }
         }
     }

                    t.column("id", .integer).primaryKey()
                    t.column("id2", .integer).references("test1")
                }
                XCTAssertEqual(self.lastSQLQuery,
                    "CREATE TABLE \"test1\" (" +
                        "\"id\" INTEGER PRIMARY KEY, " +
                        "\"id2\" INTEGER REFERENCES \"test1\"(\"id\")" +
                    ")")
                
                try db.create(table: "test2") { t in
                    t.column("id", .integer)
                    t.column("id2", .integer).references("test2")
                    t.primaryKey(["id"])
                }
                XCTAssertEqual(self.lastSQLQuery,
                    "CREATE TABLE \"test2\" (" +
                        "\"id\" INTEGER, " +
                        "\"id2\" INTEGER REFERENCES \"test2\"(\"id\"), " +
                        "PRIMARY KEY (\"id\")" +
                    ")")
                
                try db.create(table: "test3") { t in
                    t.column("a", .integer)

                    t.column("d", .integer).defaults(to: "foo".data(using: .utf8)!)
                    t.column("e", .integer).defaults(sql: "NULL")
                }
                XCTAssertEqual(
                    self.lastSQLQuery,
                    ("CREATE TABLE \"test\" (" +
                        "\"a\" INTEGER DEFAULT 1, " +
                        "\"b\" INTEGER DEFAULT 1.0, " +
                        "\"c\" INTEGER DEFAULT '''fooéı👨👨🏿🇫🇷🇨🇮''', " +
                        "\"d\" INTEGER DEFAULT x'666f6f', " +
                        "\"e\" INTEGER DEFAULT NULL" +
                        ")") as String)
                
                // Sanity check
                try db.execute("INSERT INTO test DEFAULT VALUES")
