Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cli/sqlc.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,16 +502,12 @@ func main() {
prompt = "\\u@\\H:\\p/\\d > "

refreshDB := false
if parameter.Database != "" {
refreshDB = true
}

Loop:
for {
out.Flush()
if refreshDB {
db.Database, _ = db.GetDatabase()
go func() { dynamic_tokens = db.GetAutocompleteTokens() }() // Update the dynamic tokens in the background...
}

renderdPrompt := prompt
Expand Down
12 changes: 9 additions & 3 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,17 @@ func connectionCommands(config SQCloudConfig) (string, []interface{}) {
buffer += noblobCommand(config.NoBlob)
}

buffer += maxdataCommand(config.MaxData)
if config.MaxData > 0 {
buffer += maxdataCommand(config.MaxData)
}

buffer += maxrowsCommand(config.MaxRows)
if config.MaxRows > 0 {
buffer += maxrowsCommand(config.MaxRows)
}

buffer += maxrowsetCommand(config.MaxRowset)
if config.MaxRowset > 0 {
buffer += maxrowsetCommand(config.MaxRowset)
}

return buffer, args
}
Expand Down