mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Stop using sqlite WITH RECURSIVE in our tests
The version of Python 3 running in Travis CI doesn't support this.
This commit is contained in:
parent
d75f423b6f
commit
44a199a062
1 changed files with 5 additions and 9 deletions
|
|
@ -187,14 +187,6 @@ CREATE TABLE no_primary_key (
|
|||
content text
|
||||
);
|
||||
|
||||
WITH RECURSIVE
|
||||
cnt(x) AS (
|
||||
SELECT 1
|
||||
UNION ALL
|
||||
SELECT x+1 FROM cnt LIMIT 201
|
||||
)
|
||||
INSERT INTO no_primary_key SELECT * from cnt;
|
||||
|
||||
CREATE VIEW paginated_view AS
|
||||
SELECT
|
||||
content,
|
||||
|
|
@ -218,4 +210,8 @@ INSERT INTO [table/with/slashes.csv] VALUES (3, 'hey');
|
|||
|
||||
CREATE VIEW simple_view AS
|
||||
SELECT content, upper(content) AS upper_content FROM simple_primary_key;
|
||||
'''
|
||||
|
||||
''' + '\n'.join([
|
||||
'INSERT INTO no_primary_key VALUES ({});'.format(i + 1)
|
||||
for i in range(201)
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue