We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4136889 commit 940f4f6Copy full SHA for 940f4f6
store/postgres/src/relational_queries.rs
@@ -2064,8 +2064,10 @@ impl<'a> QueryFragment<Pg> for FindRangeQuery<'a> {
2064
}
2065
2066
// Generate
2067
- // select '..' as entity, to_jsonb(e.*) as data, block$ as block_number
2068
- // from schema.table e where id = $1
+ // select '..' as entity, to_jsonb(e.*) as data, {BLOCK_STATEMENT} as block_number
+ // from schema.table e where ...
2069
+ // Here the {BLOCK_STATEMENT} is 'block$' for immutable tables and either 'lower(block_range)'
2070
+ // or 'upper(block_range)' depending on the bound_side variable.
2071
out.push_sql("select ");
2072
out.push_bind_param::<Text, _>(table.object.as_str())?;
2073
out.push_sql(" as entity, to_jsonb(e.*) as data,");
0 commit comments