We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf2c7a commit 8a23403Copy full SHA for 8a23403
lib/bind.ml
@@ -116,11 +116,11 @@ let short ?(unsigned = false) b param ~at =
116
~at
117
118
let int ?(unsigned = false) b param ~at =
119
- let p = allocate int param in
+ let p = allocate llong (Signed.LLong.of_int param) in
120
bind b
121
- ~buffer:(coerce (ptr int) (ptr void) p)
122
- ~size:(sizeof int)
123
- ~mysql_type:T.Type.long
+ ~buffer:(coerce (ptr llong) (ptr void) p)
+ ~size:(sizeof llong)
+ ~mysql_type:T.Type.long_long
124
~unsigned:(if unsigned then yes else no)
125
126
0 commit comments