|
40 | 40 | function mysql_change_user(mysql::Ptr{Cvoid}, user::AbstractString, password::AbstractString, db)
|
41 | 41 | return @c(:mysql_change_user,
|
42 | 42 | Bool,
|
43 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}), |
| 43 | + (Ptr{Cvoid}, Cstring, Cstring, Cstring), |
44 | 44 | mysql, user, password, db)
|
45 | 45 | end
|
46 | 46 |
|
|
56 | 56 | function mysql_client_find_plugin(mysql::Ptr{Cvoid}, name::AbstractString, type::Int)
|
57 | 57 | return @c(:mysql_client_find_plugin,
|
58 | 58 | Ptr{Cvoid},
|
59 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Cint), |
| 59 | + (Ptr{Cvoid}, Cstring, Cint), |
60 | 60 | mysql, name, type)
|
61 | 61 | end
|
62 | 62 |
|
|
277 | 277 | function mysql_hex_string(to, from, length::Integer)
|
278 | 278 | return @c(:mysql_hex_string,
|
279 | 279 | Culong,
|
280 |
| - (Ptr{UInt8}, Ptr{UInt8}, Culong), |
| 280 | + (Cstring, Cstring, Culong), |
281 | 281 | to, from, length)
|
282 | 282 | end
|
283 | 283 |
|
@@ -386,46 +386,46 @@ end
|
386 | 386 | function mysql_plugin_options(plugin::Ptr{Cvoid}, option, value)
|
387 | 387 | return @c(:mysql_plugin_options,
|
388 | 388 | Cint,
|
389 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{Cvoid}), |
| 389 | + (Ptr{Cvoid}, Cstring, Ptr{Cvoid}), |
390 | 390 | plugin, option, value)
|
391 | 391 | end
|
392 | 392 |
|
393 | 393 | function mysql_query(mysql::Ptr{Cvoid}, stmt_str)
|
394 | 394 | return @c(:mysql_query,
|
395 | 395 | Cint,
|
396 |
| - (Ptr{Cvoid}, Ptr{UInt8}), |
| 396 | + (Ptr{Cvoid}, Cstring), |
397 | 397 | mysql, stmt_str)
|
398 | 398 | end
|
399 | 399 |
|
400 | 400 | #MYSQL *mysql_real_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd, const char *db, unsigned int port, const char *unix_socket, unsigned long client_flag)
|
401 | 401 | function mysql_real_connect(mysql::Ptr{Cvoid}, host, user, passwd, db, port, unix_socket, client_flag)
|
402 | 402 | return @c(:mysql_real_connect,
|
403 | 403 | Ptr{Cvoid},
|
404 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}, Cuint, Ptr{UInt8}, Culong), |
| 404 | + (Ptr{Cvoid}, Cstring, Cstring, Cstring, Cstring, Cuint, Cstring, Culong), |
405 | 405 | mysql, host, user, passwd, db, port, unix_socket, client_flag)
|
406 | 406 | end
|
407 | 407 |
|
408 | 408 | #unsigned long mysql_real_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)
|
409 | 409 | function mysql_real_escape_string(mysql::Ptr{Cvoid}, to, from, len)
|
410 | 410 | return @c(:mysql_real_escape_string,
|
411 | 411 | Culong,
|
412 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{UInt8}, Culong), |
| 412 | + (Ptr{Cvoid}, Ptr{UInt8}, Cstring, Culong), |
413 | 413 | mysql, to, from, len)
|
414 | 414 | end
|
415 | 415 |
|
416 | 416 | #unsigned long mysql_real_escape_string_quote(MYSQL *mysql, char *to, const char *from, unsigned long length, char quote)
|
417 | 417 | function mysql_real_escape_string_quote(mysql::Ptr{Cvoid}, to, from, len, q)
|
418 | 418 | return @c(:mysql_real_escape_string_quote,
|
419 | 419 | Culong,
|
420 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{UInt8}, Culong, Cchar), |
| 420 | + (Ptr{Cvoid}, Ptr{UInt8}, Cstring, Culong, Cchar), |
421 | 421 | mysql, to, from, len, q)
|
422 | 422 | end
|
423 | 423 |
|
424 | 424 | #int mysql_real_query(MYSQL *mysql, const char *stmt_str, unsigned long length)
|
425 | 425 | function mysql_real_query(mysql::Ptr{Cvoid}, stmt_str, len)
|
426 | 426 | return @c(:mysql_real_query,
|
427 | 427 | Cint,
|
428 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Culong), |
| 428 | + (Ptr{Cvoid}, Cstring, Culong), |
429 | 429 | mysql, stmt_str, len)
|
430 | 430 | end
|
431 | 431 |
|
@@ -480,31 +480,31 @@ end
|
480 | 480 | function mysql_select_db(mysql::Ptr{Cvoid}, db::AbstractString)
|
481 | 481 | return @c(:mysql_select_db,
|
482 | 482 | Cint,
|
483 |
| - (Ptr{Cvoid}, Ptr{UInt8}), |
| 483 | + (Ptr{Cvoid}, Cstring), |
484 | 484 | mysql, db)
|
485 | 485 | end
|
486 | 486 |
|
487 | 487 | #int mysql_session_track_get_first(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length)
|
488 | 488 | function mysql_session_track_get_first(mysql::Ptr{Cvoid}, type, data, len)
|
489 | 489 | return @c(:mysql_session_track_get_first,
|
490 | 490 | Cint,
|
491 |
| - (Ptr{Cvoid}, Cint, Ptr{Ptr{UInt8}}, Ptr{Csize_t}), |
| 491 | + (Ptr{Cvoid}, Cint, Ptr{Cstring}, Ptr{Csize_t}), |
492 | 492 | mysql, type, data, len)
|
493 | 493 | end
|
494 | 494 |
|
495 | 495 | #int mysql_session_track_get_next(MYSQL *mysql, enum enum_session_state_type type, const char **data, size_t *length)
|
496 | 496 | function mysql_session_track_get_next(mysql::Ptr{Cvoid}, type, data, len)
|
497 | 497 | return @c(:mysql_session_track_get_next,
|
498 | 498 | Cint,
|
499 |
| - (Ptr{Cvoid}, Cint, Ptr{Ptr{UInt8}}, Ptr{Csize_t}), |
| 499 | + (Ptr{Cvoid}, Cint, Ptr{Cstring}, Ptr{Csize_t}), |
500 | 500 | mysql, type, data, len)
|
501 | 501 | end
|
502 | 502 |
|
503 | 503 | #int mysql_set_character_set(MYSQL *mysql, const char *csname)
|
504 | 504 | function mysql_set_character_set(mysql::Ptr{Cvoid}, csname::AbstractString)
|
505 | 505 | return @c(:mysql_set_character_set,
|
506 | 506 | Cint,
|
507 |
| - (Ptr{Cvoid}, Ptr{UInt8}), |
| 507 | + (Ptr{Cvoid}, Cstring), |
508 | 508 | mysql, csname)
|
509 | 509 | end
|
510 | 510 |
|
|
544 | 544 | function mysql_ssl_set(mysql::Ptr{Cvoid}, key, cert, ca, capath, cipher)
|
545 | 545 | return @c(:mysql_ssl_set,
|
546 | 546 | Bool,
|
547 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}, Ptr{UInt8}), |
| 547 | + (Ptr{Cvoid}, Cstring, Cstring, Cstring, Cstring, Cstring), |
548 | 548 | mysql, key, cert, ca, capath, cipher)
|
549 | 549 | end
|
550 | 550 |
|
|
748 | 748 | function mysql_stmt_prepare(stmt::Ptr{Cvoid}, stmt_str, len)
|
749 | 749 | return @c(:mysql_stmt_prepare,
|
750 | 750 | Cint,
|
751 |
| - (Ptr{Cvoid}, Ptr{UInt8}, Culong), |
| 751 | + (Ptr{Cvoid}, Cstring, Culong), |
752 | 752 | stmt, stmt_str, len)
|
753 | 753 | end
|
754 | 754 |
|
|
788 | 788 | function mysql_stmt_send_long_data(stmt::Ptr{Cvoid}, parameter_number, data, length)
|
789 | 789 | return @c(:mysql_stmt_send_long_data,
|
790 | 790 | Bool,
|
791 |
| - (Ptr{Cvoid}, Cuint, Ptr{UInt8}, Culong), |
| 791 | + (Ptr{Cvoid}, Cuint, Cstring, Culong), |
792 | 792 | stmt, parameter_number, data, length)
|
793 | 793 | end
|
794 | 794 |
|
|
0 commit comments