Indeed, that is exactly what I'm doing. I suspect Isaiah had the
mysql_query() API in mind, which is much easier to work with, but less
powerful.
Thanks everyone for your comments.
-- John
On Tuesday, June 2, 2015 at 1:57:50 PM UTC-7, Jameson wrote:
>
> @Isaiah I suspect the array referred to
@Isaiah I suspect the array referred to is of type `MYSQL_BIND[]`, in which
case John is correct that declaring this as `Vector{MYSQL_BIND}` (where
`MYSQL_BIND` is an appropriated defined isbits type) should work exactly as
desired.
On Tue, Jun 2, 2015 at 11:09 AM John Myles White
wrote:
> I've
That approach should work fine. If you want to do the mutation in Julia,
the simplest (but slightly verbose) option is to use the immutable
constructor and replace the item in-place in the array. Or you can use
something like the modifyField function generator that Stephen Vavasis
recently posted (
I've been fixing up the MySQL.jl package recently. To receive data on the
client-side from prepared statements, I need to pass around an array of mutable
structs, defined in MySQL C's API, so that C can populate those structs with
data from the server.
If helpful, an example of how this works i