Revision 9460
Added by Aaron Marcuse-Kubitza over 11 years ago
db.sh | ||
---|---|---|
27 | 27 |
declare query="$(rtrim "${query:-SELECT ${cols:-*} ${cols:+ |
28 | 28 |
}FROM $table_esc |
29 | 29 |
${filter:+WHERE $filter |
30 |
}}${limit:+LIMIT $limit
|
|
31 |
}")"
|
|
30 |
}}")
|
|
31 |
${limit:+LIMIT $limit}"
|
|
32 | 32 |
' |
33 | 33 |
|
34 | 34 |
fi # load new aliases |
Also available in: Unified diff
bugfix: lib/sh/db.sh: mk_select: ensure newline before LIMIT clause, in case caller provided custom query which did not have trailing newline