1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Merge the latest trunk enhancements into the bedrock branch through the wal2

intermediary.

FossilOrigin-Name: 203376300781167f3e96da0197a9c8e8da6fed15c56c8980a4c283ef34478a07
This commit is contained in:
drh
2025-03-03 16:01:11 +00:00
179 changed files with 4062 additions and 1379 deletions

View File

@@ -534,10 +534,13 @@ foreach f [lsort [array names allflags]] {
set fv [expr {$fv*2}]
}
# Sort the column lists so that longer column lists occur first
# Sort the column lists so that longer column lists occur first.
# In the event of a tie, sort column lists lexicographically.
#
proc colscmp {a b} {
return [expr {[llength $b] - [llength $a]}]
set rc [expr {[llength $b] - [llength $a]}]
if {$rc} {return $rc}
return [string compare $a $b]
}
set cols_list [lsort -command colscmp $cols_list]