Skip to content

Commit

Permalink
feat(cubesql): Specify max_allowed_packet, auto_increment_increment
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Nov 30, 2021
1 parent 6f7adf8 commit dd4a22d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/cubejs-backend-native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions rust/cubesql/src/compile/engine/context.rs
Expand Up @@ -11,6 +11,14 @@ impl SystemVar {
/// new system variable
pub fn new() -> Self {
let mut variables = HashMap::new();
variables.insert(
"@@max_allowed_packet".to_string(),
ScalarValue::UInt32(Some(67108864)),
);
variables.insert(
"@@auto_increment_increment".to_string(),
ScalarValue::UInt32(Some(1)),
);
variables.insert(
"@@version_comment".to_string(),
ScalarValue::Utf8(Some("mysql".to_string())),
Expand Down

0 comments on commit dd4a22d

Please sign in to comment.