summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-08-07 20:16:37 +0300
committerunknown <monty@mashka.mysql.fi>2003-08-07 20:16:37 +0300
commitfa1613be0a54ba87321501a52d62d4e99d237945 (patch)
tree0175c785de8b8892ceba2db249cf74c6362b2137 /mysys
parent3b013646e1550d22dff01dd02c8d12118a563fe2 (diff)
downloadmariadb-git-fa1613be0a54ba87321501a52d62d4e99d237945.tar.gz
Review of changesets since last pull.
(Mostly code cleanups) include/my_sys.h: Removed not used define myisam/mi_check.c: Indentation change mysql-test/t/rpl_insert_id.test: Add test if server supports innodb mysys/mf_format.c: Remove QUOTE handling from fn_format() (fn_format() should not have anything to do with quoting things) sql/log_event.cc: Removed some unnecessary casts (by changing functions to use const char *) Cleaned up some error messages to make them shorter and (hopefully) more readable. Fixed wrong format strings Restored 'thd->options' on error. sql/mini_client.cc: Changed order of include files to remove compilation warning sql/mysqld.cc: Add proper quoting of service arguments (don't use fn_format) sql/slave.cc: Simple optimization and cleanup. Changed rewrite_db() and print_slave_db_safe() to use const char* to avoid casting of arguments when calling functions. Cleanup of some error messages. sql/slave.h: Changed protypes to use const char * sql/sql_acl.cc: Simple optimization vio/viosslfactories.c: Changed order of include files to remove compilation warning
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_format.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/mysys/mf_format.c b/mysys/mf_format.c
index 36d3908d310..937904847ee 100644
--- a/mysys/mf_format.c
+++ b/mysys/mf_format.c
@@ -111,15 +111,7 @@ my_string fn_format(my_string to, const char *name, const char *dir,
strmov(buff,to);
(void) my_readlink(to, buff, MYF(0));
}
- if ( flag & MY_QUOTE_SPACES)
- if ( strchr(to, ' '))
- {
- char tmp_buff[FN_REFLEN];
- tmp_buff[0]='"';
- strxmov(tmp_buff+1,to,"\"",NullS);
- strmov(to,tmp_buff);
- }
- DBUG_RETURN (to);
+ DBUG_RETURN(to);
} /* fn_format */