core: Rename build_select() to prepare_select()

Let's follow SQLite's naming here.
This commit is contained in:
Pekka Enberg
2024-07-25 17:40:46 +03:00
parent 97afd76865
commit 16e0e740df
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ use crate::sqlite3_ondisk::{DatabaseHeader, MIN_PAGE_CACHE_SIZE};
use crate::util::normalize_ident;
use crate::vdbe::{builder::ProgramBuilder, BranchOffset, Insn, Program};
use crate::Result;
use select::{build_select, translate_select};
use select::{prepare_select, translate_select};
use sqlite3_parser::ast;
struct LimitInfo {
@@ -36,7 +36,7 @@ pub fn translate(
) -> Result<Program> {
match stmt {
ast::Stmt::Select(select) => {
let select = build_select(schema, &select)?;
let select = prepare_select(schema, &select)?;
translate_select(select)
}
ast::Stmt::Pragma(name, body) => translate_pragma(&name, body, database_header, pager),

View File

@@ -117,7 +117,7 @@ pub struct LoopInfo {
pub open_cursor: usize,
}
pub fn build_select<'a>(schema: &Schema, select: &'a ast::Select) -> Result<Select<'a>> {
pub fn prepare_select<'a>(schema: &Schema, select: &'a ast::Select) -> Result<Select<'a>> {
match &select.body.select {
ast::OneSelect::Select {
columns,