Skip to content

Commit

Permalink
Merge pull request #9 from pcardoso/master
Browse files Browse the repository at this point in the history
Fixed Double input binding
  • Loading branch information
tanner0101 authored Jul 11, 2016
2 parents 15ee918 + ddb73e8 commit 5c46058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/MySQL/Bind.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#endif

/**
This structure is used both for statement input (data values sent to the server)
This structure is used both for statement input (data values sent to the server)
and output (result values returned from the server):

The Swift version consists of a wrapper around MySQL's implementation
to ensure proper freeing of allocated memory.
*/
Expand Down Expand Up @@ -98,7 +98,7 @@ public final class Bind {
let buffer = UnsafeMutablePointer<Double>(allocatingCapacity: 1)
buffer.initialize(with: Double(int))

self.init(type: MYSQL_TYPE_LONGLONG, buffer: buffer, bufferLength: sizeof(Double.self))
self.init(type: MYSQL_TYPE_DOUBLE, buffer: buffer, bufferLength: sizeof(Double.self))
}

/**
Expand Down

0 comments on commit 5c46058

Please sign in to comment.