MariaDB: fix type misspell

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: fix type mismatch

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: change macro into inline function

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: alter function prototype

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: make disconnect to wait for all queries finish

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: fix some minor errors

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: fix some type mismatch errors

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: free both query callback private data

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: fix type mismatch error

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: fix function prototype

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: add default to switch

Signed-off-by: swpd <swpdtz@gmail.com>