Skip to content

Commit f7d5387

Browse files
committed
cmd_db: python escape \G for showg command
- GH #29
1 parent 533aee8 commit f7d5387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: kamcli/commands/cmd_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def db_clishowg(ctx, table):
200200
dbtype = ctx.gconfig.get("db", "type")
201201
if dbtype == "mysql":
202202
scmd = (
203-
r'mysql -h {0} -u {1} -p{2} -e "select * from {3} \G" {4}'
203+
r'mysql -h {0} -u {1} -p{2} -e "select * from {3} \\G" {4}'
204204
).format(
205205
ctx.gconfig.get("db", "host"),
206206
ctx.gconfig.get("db", "rwuser"),

0 commit comments

Comments
 (0)