diff options
author | Michael Widenius <monty@askmonty.org> | 2009-10-02 13:36:28 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2009-10-02 13:36:28 +0300 |
commit | f77e2692dcce37e23a643c4e7c83394ea553b5c3 (patch) | |
tree | 94fc513a0a750ec0c8502c7e031205bcc16f6b70 /include/mysql.h.pp | |
parent | 12f18c8800a949347a223fc38946c94d5aca0e8a (diff) | |
download | mariadb-git-f77e2692dcce37e23a643c4e7c83394ea553b5c3.tar.gz |
Added client functions:
- mysql_get_server_name()
This returns MySQL or MariaDB depending on the server type
- mariadb_connection()
This returns 1 if you are connected to a MariaDB server
Modifed the MySQL command line client to print out if you are connected to MariaDB or MySQL
Better default prompt (shows server you are connected to and base directory)
client/mysql.cc:
Print out if you are connected to MariaDB or MySQL
Better default prompt (shows server you are connected to and base directory)
Added option \N to prompt to print server name.
configure.in:
Changed maria to MariaDB in version string
include/mysql.h:
Added mysql_get_server_name() and mariadb_connection()
include/mysql.h.pp:
Update for new API functions
libmysql/libmysql.c:
Added client functions:
- mysql_get_server_name()
This returns MySQL or MariaDB depending on the server type
- mariadb_connection()
This returns 1 if you are connected to a MariaDB server
Diffstat (limited to 'include/mysql.h.pp')
-rw-r--r-- | include/mysql.h.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mysql.h.pp b/include/mysql.h.pp index 081c95c5638..c333cb2bec5 100644 --- a/include/mysql.h.pp +++ b/include/mysql.h.pp @@ -487,6 +487,7 @@ int mysql_set_server_option(MYSQL *mysql, int mysql_ping(MYSQL *mysql); const char * mysql_stat(MYSQL *mysql); const char * mysql_get_server_info(MYSQL *mysql); +const char * mysql_get_server_name(MYSQL *mysql); const char * mysql_get_client_info(void); unsigned long mysql_get_client_version(void); const char * mysql_get_host_info(MYSQL *mysql); @@ -520,6 +521,7 @@ void mysql_debug(const char *debug); void myodbc_remove_escape(MYSQL *mysql,char *name); unsigned int mysql_thread_safe(void); my_bool mysql_embedded(void); +my_bool mariadb_connection(MYSQL *mysql); MYSQL_MANAGER* mysql_manager_init(MYSQL_MANAGER* con); MYSQL_MANAGER* mysql_manager_connect(MYSQL_MANAGER* con, const char* host, |