     /// create Double parameter binding
 	public func bindParam(_ d: Double) {
 		self.paramBinds?[self.paramBindsOffset].buffer_type = MYSQL_TYPE_DOUBLE
-		self.paramBinds?[self.paramBindsOffset].buffer_length = UInt(sizeof(Double))
+		self.paramBinds?[self.paramBindsOffset].buffer_length = UInt(sizeof(Double.self))
 		let a = UnsafeMutablePointer<Double>.allocatingCapacity(1)
 		a.initialize(with: d)
 		self.paramBinds?[self.paramBindsOffset].buffer = UnsafeMutablePointer<()>(a)

    /// create Int parameter binding
    public func bindParam(_ i: Int) {
        self.paramBinds?[self.paramBindsOffset].buffer_type = MYSQL_TYPE_LONGLONG
        self.paramBinds?[self.paramBindsOffset].buffer_length = UInt(sizeof(Int64))
        let a = UnsafeMutablePointer<Int64>.allocatingCapacity(1)
        a.initialize(with: Int64(i))
        self.paramBinds?[self.paramBindsOffset].buffer = UnsafeMutablePointer<()>(a)

    /// create UInt64 parameter binding
    public func bindParam(_ i: UInt64) {
        self.paramBinds?[self.paramBindsOffset].buffer_type = MYSQL_TYPE_LONGLONG
        self.paramBinds?[self.paramBindsOffset].buffer_length = UInt(sizeof(UInt64.self))
        let a = UnsafeMutablePointer<UInt64>.allocatingCapacity(1)
        a.initialize(with: UInt64(i))
        self.paramBinds?[self.paramBindsOffset].is_unsigned = 1
