diff options
author | Sergei Golubchik <serg@mariadb.org> | 2014-11-16 13:12:58 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2014-12-04 10:41:51 +0100 |
commit | 97a913e31c161dbd18f4fcb9cc00f23640497e03 (patch) | |
tree | 3405f9195999422b9ee3d596c0ae1db95c2d6134 /sql/sql_servers.h | |
parent | a50ddebb5cfa7b79540d155e8e41c7a07c4c3fbf (diff) | |
download | mariadb-git-97a913e31c161dbd18f4fcb9cc00f23640497e03.tar.gz |
cleanup: freshen up CREATE SERVER code
* pass LEX_STRING's from the parser, don't ignore the length only to strlen later
* init LEX::server_options only for SERVER commands, not for every statement
* don't put temporary values into a global persistent memroot
but really it's just scratching a surface
Diffstat (limited to 'sql/sql_servers.h')
-rw-r--r-- | sql/sql_servers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_servers.h b/sql/sql_servers.h index a6186a85ae2..d5668f0dfcb 100644 --- a/sql/sql_servers.h +++ b/sql/sql_servers.h @@ -26,10 +26,10 @@ typedef struct st_mem_root MEM_ROOT; /* structs */ typedef struct st_federated_server { - char *server_name; + const char *server_name; long port; uint server_name_length; - char *db, *scheme, *username, *password, *socket, *owner, *host, *sport; + const char *db, *scheme, *username, *password, *socket, *owner, *host, *sport; } FOREIGN_SERVER; /* cache handlers */ |