Fix #5127
parent
7ccbbecf03
commit
c6d32bd1bb
|
@ -103,6 +103,9 @@ func (c *CommandLine) Run() error {
|
|||
c.Client.Addr())
|
||||
}
|
||||
|
||||
// Modify precision.
|
||||
c.SetPrecision(c.Precision)
|
||||
|
||||
if c.Execute == "" && !c.Import {
|
||||
token, err := c.DatabaseToken()
|
||||
if err != nil {
|
||||
|
@ -115,9 +118,6 @@ func (c *CommandLine) Run() error {
|
|||
}
|
||||
|
||||
if c.Execute != "" {
|
||||
// Modify precision before executing query
|
||||
c.SetPrecision(c.Precision)
|
||||
|
||||
// Make the non-interactive mode send everything through the CLI's parser
|
||||
// the same way the interactive mode works
|
||||
lines := strings.Split(c.Execute, "\n")
|
||||
|
|
Loading…
Reference in New Issue