mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-21 23:38:14 +08:00
Sync series with official source
This commit is contained in:
parent
87a65a8c4b
commit
f177ee1c72
@ -38,7 +38,7 @@ bitflags::bitflags! {
|
||||
const STEP = 4;
|
||||
// output in descending order
|
||||
const DESC = 8;
|
||||
// output in descending order
|
||||
// output in ascending order
|
||||
const ASC = 16;
|
||||
// Both start and stop
|
||||
const BOTH = QueryPlanFlags::START.bits | QueryPlanFlags::STOP.bits;
|
||||
@ -123,6 +123,7 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
|
||||
let order_by_consumed = {
|
||||
let mut order_bys = info.order_bys();
|
||||
if let Some(order_by) = order_bys.next() {
|
||||
if order_by.column() == 0 {
|
||||
if order_by.is_order_by_desc() {
|
||||
idx_num |= QueryPlanFlags::DESC;
|
||||
} else {
|
||||
@ -132,6 +133,9 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
};
|
||||
if order_by_consumed {
|
||||
info.set_order_by_consumed(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user