• unknown's avatar
    Fix for #2208 (multi-query returns wrong result in embedded library) · 61f85dcb
    unknown authored
    now we execute only one first select during mysql_real_query
    others - during 'mysql_next_result'
    
    
    include/mysql.h:
      'virtual' next_result added
    libmysql/client_settings.h:
      cli_next_result declaration added
    libmysql/libmysql.c:
      mysql_next_result now works in embedded library as well
    libmysqld/lib_sql.cc:
      emb_next_result implemented
    sql/sql_class.h:
      fields to store the rest of the query added
    sql/sql_parse.cc:
      Saving the rest of the query added for embedded case
    61f85dcb
lib_sql.cc 18.6 KB