Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
cc2916c4
Commit
cc2916c4
authored
Nov 20, 2003
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added multi command support for mysql client.
parent
ba659679
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
64 deletions
+68
-64
client/mysql.cc
client/mysql.cc
+68
-64
No files found.
client/mysql.cc
View file @
cc2916c4
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
#include <locale.h>
#include <locale.h>
#endif
#endif
const
char
*
VER
=
"14.
2
"
;
const
char
*
VER
=
"14.
3
"
;
/* Don't try to make a nice table if the data is too big */
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
#define MAX_COLUMN_LENGTH 1024
...
@@ -1665,10 +1665,11 @@ com_go(String *buffer,char *line __attribute__((unused)))
...
@@ -1665,10 +1665,11 @@ com_go(String *buffer,char *line __attribute__((unused)))
buffer
->
length
(
0
);
// Remove query on error
buffer
->
length
(
0
);
// Remove query on error
return
error
;
return
error
;
}
}
error
=
0
;
error
=
0
;
buffer
->
length
(
0
);
buffer
->
length
(
0
);
do
{
if
(
quick
)
if
(
quick
)
{
{
if
(
!
(
result
=
mysql_use_result
(
&
mysql
))
&&
mysql_field_count
(
&
mysql
))
if
(
!
(
result
=
mysql_use_result
(
&
mysql
))
&&
mysql_field_count
(
&
mysql
))
...
@@ -1738,6 +1739,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
...
@@ -1738,6 +1739,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
else
if
(
unbuffered
)
else
if
(
unbuffered
)
fflush
(
stdout
);
fflush
(
stdout
);
mysql_free_result
(
result
);
mysql_free_result
(
result
);
}
while
(
!
mysql_next_result
(
&
mysql
));
return
error
;
/* New command follows */
return
error
;
/* New command follows */
}
}
...
@@ -2416,6 +2419,7 @@ com_delimiter(String *buffer __attribute__((unused)), char *line)
...
@@ -2416,6 +2419,7 @@ com_delimiter(String *buffer __attribute__((unused)), char *line)
}
}
strmake
(
delimiter
,
tmp
,
sizeof
(
delimiter
)
-
1
);
strmake
(
delimiter
,
tmp
,
sizeof
(
delimiter
)
-
1
);
delimiter_length
=
strlen
(
delimiter
);
delimiter_length
=
strlen
(
delimiter
);
delimiter_str
=
delimiter
;
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment