mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
sql console outputs results of CTEs, fixes #2800
This commit is contained in:
parent
4a1ecd906b
commit
6015a067ec
@ -37,7 +37,7 @@ function execute(req) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (query.toLowerCase().startsWith('select')) {
|
if (query.toLowerCase().startsWith('select') || query.toLowerCase().startsWith('with')) {
|
||||||
results.push(sql.getRows(query));
|
results.push(sql.getRows(query));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user