1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

more C API methods in the service_sql

for columnstore
This commit is contained in:
Sergei Golubchik
2022-11-14 20:46:42 +01:00
parent 47e29a2ff4
commit d5e3d37ec2
13 changed files with 86 additions and 24 deletions

View File

@@ -1065,11 +1065,6 @@ MYSQL_FIELD * STDCALL mysql_fetch_field_direct(MYSQL_RES *res,uint fieldnr)
return &(res)->fields[fieldnr];
}
MYSQL_FIELD * STDCALL mysql_fetch_fields(MYSQL_RES *res)
{
return (res)->fields;
}
MYSQL_ROW_OFFSET STDCALL mysql_row_tell(MYSQL_RES *res)
{
return res->data_cursor;
@@ -1215,18 +1210,6 @@ mysql_escape_string(char *to,const char *from,ulong length)
length, &overflow);
}
ulong STDCALL
mysql_real_escape_string(MYSQL *mysql, char *to,const char *from,
ulong length)
{
my_bool overflow;
if (mysql->server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)
return (ulong) escape_quotes_for_mysql(mysql->charset, to, 0, from, length,
&overflow);
return (ulong) escape_string_for_mysql(mysql->charset, to, 0, from, length,
&overflow);
}
void STDCALL
myodbc_remove_escape(MYSQL *mysql,char *name)
{
@@ -4953,11 +4936,6 @@ int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt)
}
MYSQL_RES * STDCALL mysql_use_result(MYSQL *mysql)
{
return (*mysql->methods->use_result)(mysql);
}
my_bool STDCALL mysql_read_query_result(MYSQL *mysql)
{
return (*mysql->methods->read_query_result)(mysql);