fixing ordering checkpoint

This commit is contained in:
2026-05-14 03:26:03 -04:00
parent 3034406706
commit ce9c9baac9
2 changed files with 129 additions and 4 deletions

View File

@ -1,6 +1,6 @@
use crate::database::Database;
use std::sync::Arc;
use indexmap::IndexMap;
use std::sync::Arc;
pub struct Compiler<'a> {
pub db: &'a Database,
@ -378,10 +378,7 @@ impl<'a> Compiler<'a> {
return Ok(("NULL".to_string(), "string".to_string()));
}
case_statements.sort();
let sql = format!("CASE {} ELSE NULL END", case_statements.join(" "));
Ok((sql, "object".to_string()))
}