     /// 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)

		func bindBuffer<T>(_ sourceBind: MYSQL_BIND, type: T) -> MYSQL_BIND {
			var bind = sourceBind
			bind.buffer = UnsafeMutablePointer<()>(UnsafeMutablePointer<T>.allocatingCapacity(1))
			bind.buffer_length = UInt(sizeof(T))
			return bind
		}
        

    /// 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.self))
        let a = UnsafeMutablePointer<Int64>.allocatingCapacity(1)
        a.initialize(with: Int64(i))
        self.paramBinds?[self.paramBindsOffset].buffer = UnsafeMutablePointer<()>(a)
