         }
         
         let resultPointer = withUnsafePointers(to: parameterDatas) {
-            PQexecParams(pointer, sql, Int32($0.count), parameterTypes.map { $0 ?? 0 }, $0, parameterLengths, parameterFormats, 0)!
+            PQexecParams(pointer, sql, Int32($0.count), parameterTypes.map { $0 ?? 0 }, $0, parameterLengths, parameterFormats, resultFormat.rawValue)!
         }
         
         return try PostgreSQL.Result(pointer: resultPointer)

    }
    
    /// - RecommendedOver: `PQexecParams`
    public func execute(_ sql: String, with parameterValues: [PostgreSQL.RawValue?], ofTypes parameterTypes: [Oid?] = []) throws -> PostgreSQL.Result {
        var parameterDatas: [Data?] = []
        var parameterLengths: [Int32] = []
        var parameterFormats: [Int32] = []

        }
        
        let resultPointer = withUnsafePointers(to: parameterDatas) {
            PQexecPrepared(connection.pointer, name, Int32($0.count), $0, parameterLengths, parameterFormats, resultFormat.rawValue)!
        }
        
        return try PostgreSQL.Result(pointer: resultPointer)
