summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <jani@prima.mysql.com>2000-11-20 19:51:22 +0200
committerunknown <jani@prima.mysql.com>2000-11-20 19:51:22 +0200
commit0ddccac88f41a1ed938a78878dc9d045b2ae6026 (patch)
tree965a6658ec41902189f961a83a464036fdfa137f /client
parenta3d792f147ad238559c003340e37524a4ccc4937 (diff)
parent1323e461a94f0df3e88d211b968a0c50049936b2 (diff)
downloadmariadb-git-0ddccac88f41a1ed938a78878dc9d045b2ae6026.tar.gz
Merge narttu:/my/bk/mysql into prima.mysql.com:/home/my/bk/mysql
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 55990db5750..56f8184f416 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -109,7 +109,7 @@ static HashTable ht;
enum enum_info_type { INFO_INFO,INFO_ERROR,INFO_RESULT};
typedef enum enum_info_type INFO_TYPE;
-const char *VER="11.4";
+const char *VER="11.5";
static MYSQL mysql; /* The connection */
static bool info_flag=0,ignore_errors=0,wait_flag=0,quick=0,
@@ -763,16 +763,6 @@ static int read_lines(bool execute_commands)
status.query_start_line=line_number;
}
else
-#ifdef __WIN__
- {
- tee_fprintf(stdout, glob_buffer.is_empty() ? "mysql> " :
- !in_string ? " -> " :
- in_string == '\'' ?
- " '> " : " \"> ");
- linebuffer[0]=(char) sizeof(linebuffer);
- line=_cgets(linebuffer);
- }
-#else
{
if (opt_outfile)
{
@@ -783,14 +773,24 @@ static int read_lines(bool execute_commands)
in_string == '\'' ?
" '> " : " \"> ", OUTFILE);
}
+#ifdef __WIN__
+ tee_fprintf(stdout, glob_buffer.is_empty() ? "mysql> " :
+ !in_string ? " -> " :
+ in_string == '\'' ?
+ " '> " : " \"> ");
+ linebuffer[0]=(char) sizeof(linebuffer);
+ line=_cgets(linebuffer);
+ if (opt_outfile)
+ fprintf(OUTFILE, "%s\n", line);
+#else
line=readline((char*) (glob_buffer.is_empty() ? "mysql> " :
!in_string ? " -> " :
in_string == '\'' ?
" '> " : " \"> "));
if (opt_outfile)
fprintf(OUTFILE, "%s\n", line);
- }
#endif
+ }
if (!line) // End of file
{
status.exit_status=0;