• unknown's avatar
    Fix for 1224 (USER() CURRENT_USER() functions in embedded library) · 4a44e805
    unknown authored
    Now we return user@host for USER() in embedded library
    CURRENT_USER returns empty string if library compiled with
    NO_EMBEDDED_ACCESS_CHECKS
    
    
    libmysqld/embedded_priv.h:
      function's declarations trimmed
    libmysqld/lib_sql.cc:
      user/host names handling added
    libmysqld/libmysqld.c:
      user/host names handling added
    sql/sql_class.cc:
      we shouldn't free user/host names in embedded library
    4a44e805
sql_class.cc 33.7 KB