mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Added find_type_or_exit and find_bit_type_or_exit as wrappers
around the original functions. These will ensure that error message is always in unique form, reduce code and print the right alternatives automatically in an error case. client/mysql.cc: Changed find_type to find_type_or_exit client/mysqladmin.cc: Changed find_type to find_type_or_exit client/mysqlbinlog.cc: Changed find_type to find_type_or_exit client/mysqlcheck.c: Changed find_type to find_type_or_exit client/mysqldump.c: Changed find_type to find_type_or_exit client/mysqlimport.c: Changed find_type to find_type_or_exit client/mysqlshow.c: Changed find_type to find_type_or_exit client/mysqlslap.c: Changed find_type to find_type_or_exit include/typelib.h: Added find_type_or_exit mysql-test/r/mysql_protocols.result: Fixed result. mysys/typelib.c: Added find_type_or_exit sql/mysqld.cc: Added use of find_type_or_exit and find_bit_type_or_exit Fixed a missing break; from an option handling. (Bug in --tc-heuristic-recover)
This commit is contained in:
@@ -7,3 +7,4 @@ SOCKET
|
||||
ERROR 2047 (HY000): Wrong or unknown protocol
|
||||
ERROR 2047 (HY000): Wrong or unknown protocol
|
||||
Unknown option to protocol: NullS
|
||||
Alternatives are: 'TCP','SOCKET','PIPE','MEMORY'
|
||||
|
||||
Reference in New Issue
Block a user