mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
Dont use ORDER BY in .schema
This commit is contained in:
parent
d50d98d164
commit
c1f4f5879c
2 changed files with 7 additions and 7 deletions
|
@ -168,7 +168,7 @@ fn display_schema(
|
|||
table_name
|
||||
),
|
||||
None => String::from(
|
||||
"SELECT sql FROM sqlite_schema WHERE type IN ('table', 'index') AND name NOT LIKE 'sqlite_%' ORDER BY type, name"
|
||||
"SELECT sql FROM sqlite_schema WHERE type IN ('table', 'index') AND name NOT LIKE 'sqlite_%'"
|
||||
),
|
||||
};
|
||||
|
||||
|
|
|
@ -5,12 +5,7 @@ source $testdir/tester.tcl
|
|||
|
||||
do_execsql_test schema {
|
||||
.schema
|
||||
} {{CREATE TABLE products (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT,
|
||||
price REAL
|
||||
);
|
||||
CREATE TABLE users (
|
||||
} {{CREATE TABLE users (
|
||||
id INTEGER PRIMARY KEY,
|
||||
first_name TEXT,
|
||||
last_name TEXT,
|
||||
|
@ -21,6 +16,11 @@ CREATE TABLE users (
|
|||
state TEXT,
|
||||
zipcode TEXT,
|
||||
age INTEGER
|
||||
);
|
||||
CREATE TABLE products (
|
||||
id INTEGER PRIMARY KEY,
|
||||
name TEXT,
|
||||
price REAL
|
||||
);}}
|
||||
|
||||
do_execsql_test schema-1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue