-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
@@ -13,7 +13,7 @@ | |||
<form class="sql" action="/{{ database }}-{{ database_hash }}" method="get"> | |||
<h3>Custom SQL query</h3> | |||
<p>Note: Database uses <a href="https://www.sqlite.org/lang.html">SQLite</a> syntax.</p> | |||
<p><textarea name="sql">select * from {{ tables[0].name|escape_table_name }}</textarea></p> | |||
<p><textarea name="sql">select * from {{ tables[0].name|escape_sqlite }}</textarea></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
escape_table_name
was removed and replaced in the new Datasette.
templates/_rows_and_columns.html
Outdated
{% else %} | ||
<a href="{{ path_with_added_args(request, {'_sort': column.name, '_sort_desc': None, '_next': None}) }}" rel="nofollow">{{ name }}{% if column.name == sort_desc %} ▲{% endif %}</a> | ||
{% endif %} | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this is copy-pasta from Datasette's new default template.
|
||
{% include "_codemirror_foot.html" %} | ||
{% include "_codemirror_foot.html" %} | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling was changed in the new Datasette.
I found a bug with sorting NULL columns. It's reported here: simonw/datasette#216 We should probably wait until that's worked out before upgrading. |
I just shipped Datasette 0.19 with a fix for simonw/datasette#216 |
Thanks, Simon! |
Adds sorting by columns.