Skip to content

Commit

Permalink
fix(frontend): wrong RowDescription for `SHOW TRANSACTION ISOLATION L…
Browse files Browse the repository at this point in the history
…EVEL` (#14105)

Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang authored Dec 21, 2023
1 parent 954e978 commit 9200a0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/frontend/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,10 @@ fn infer(bound: Option<BoundStatement>, stmt: Statement) -> Result<Vec<PgFieldDe
DataType::Varchar.type_len(),
),
]),
Statement::ShowTransactionIsolationLevel => {
let name = "transaction_isolation";
Ok(infer_show_variable(name))
}
Statement::ShowVariable { variable } => {
let name = &variable[0].real_value().to_lowercase();
Ok(infer_show_variable(name))
Expand Down

0 comments on commit 9200a0a

Please sign in to comment.