diff --git a/cli/main.rs b/cli/main.rs index 38046cab5..856bddbf7 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -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_%'" ), }; diff --git a/testing/cmdlineshell.test b/testing/cmdlineshell.test index 23687dcda..599dcfeb4 100644 --- a/testing/cmdlineshell.test +++ b/testing/cmdlineshell.test @@ -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 {