Skip to content

Commit 64482cb

Browse files
committed
schema type cleanup
1 parent 3dbe672 commit 64482cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/FluentPostgreSQL/PostgreSQLDatabase+QuerySupporting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extension PostgreSQLDatabase: QuerySupporting {
3636

3737
// Create a PostgreSQL-flavored SQL serializer to create a SQL string
3838
let sqlSerializer = PostgreSQLSQLSerializer()
39-
var sqlString = sqlSerializer.serialize(data: sqlQuery)
39+
let sqlString = sqlSerializer.serialize(data: sqlQuery)
4040

4141
// Combine the query data with bind values from filters.
4242
// All bind values must come _after_ the columns section of the query.

Sources/FluentPostgreSQL/PostgreSQLDatabase+SchemaSupporting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extension PostgreSQLDatabase: SchemaSupporting {
6565
/// See `SchemaSupporting.execute`
6666
public static func execute(schema: DatabaseSchema<PostgreSQLDatabase>, on connection: PostgreSQLConnection) -> Future<Void> {
6767
do {
68-
let sqlQuery = schema.makeSchemaQuery()
68+
let sqlQuery = schema.makeSchemaQuery(dataTypeFactory: dataType)
6969
let sqlString = PostgreSQLSQLSerializer().serialize(schema: sqlQuery)
7070
return try connection.query(sqlString).map(to: Void.self) { rows in
7171
assert(rows.count == 0)

0 commit comments

Comments
 (0)