From 39f690e4936b1c3a55571bfdc142c48856b2409d Mon Sep 17 00:00:00 2001 From: everpcpc Date: Thu, 8 Aug 2024 12:06:34 +0800 Subject: [PATCH] fix(cli): set limit for prompt keyword sql (#471) --- 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");