mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-22 15:58: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;
|
const STEP = 4;
|
||||||
// output in descending order
|
// output in descending order
|
||||||
const DESC = 8;
|
const DESC = 8;
|
||||||
// output in descending order
|
// output in ascending order
|
||||||
const ASC = 16;
|
const ASC = 16;
|
||||||
// Both start and stop
|
// Both start and stop
|
||||||
const BOTH = QueryPlanFlags::START.bits | QueryPlanFlags::STOP.bits;
|
const BOTH = QueryPlanFlags::START.bits | QueryPlanFlags::STOP.bits;
|
||||||
@ -123,6 +123,7 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
|
|||||||
let order_by_consumed = {
|
let order_by_consumed = {
|
||||||
let mut order_bys = info.order_bys();
|
let mut order_bys = info.order_bys();
|
||||||
if let Some(order_by) = order_bys.next() {
|
if let Some(order_by) = order_bys.next() {
|
||||||
|
if order_by.column() == 0 {
|
||||||
if order_by.is_order_by_desc() {
|
if order_by.is_order_by_desc() {
|
||||||
idx_num |= QueryPlanFlags::DESC;
|
idx_num |= QueryPlanFlags::DESC;
|
||||||
} else {
|
} else {
|
||||||
@ -132,6 +133,9 @@ unsafe impl<'vtab> VTab<'vtab> for SeriesTab {
|
|||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
false
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if order_by_consumed {
|
if order_by_consumed {
|
||||||
info.set_order_by_consumed(true);
|
info.set_order_by_consumed(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user