From c2f5b8d0e421eab6679313b82f310a5ea388d9cf Mon Sep 17 00:00:00 2001 From: everpcpc Date: Thu, 8 Aug 2024 12:01:33 +0800 Subject: [PATCH] fix(cli): set limit for prompt keyword sql --- cli/src/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/session.rs b/cli/src/session.rs index 8433b89d..907a1fc8 100644 --- a/cli/src/session.rs +++ b/cli/src/session.rs @@ -41,7 +41,7 @@ use crate::display::{format_write_progress, ChunkDisplay, FormatDisplay}; use crate::helper::CliHelper; use crate::VERSION; -static PROMPT_SQL: &str = "select name from system.tables union all select name from system.columns union all select name from system.databases union all select name from system.functions"; +static PROMPT_SQL: &str = "select name from system.tables union all select name from system.columns union all select name from system.databases union all select name from system.functions limit 10000"; static VERSION_SHORT: Lazy = Lazy::new(|| { let version = option_env!("CARGO_PKG_VERSION").unwrap_or("unknown");