awkrun: ajout d'un champ field à cqsql

This commit is contained in:
Jephté Clain 2016-04-15 12:03:49 +04:00
parent 2f60fece01
commit 73391a9a72
1 changed files with 2 additions and 2 deletions

View File

@ -1918,8 +1918,8 @@ function qsql(s) {'"
gsub(/'/, \"''\", s) gsub(/'/, \"''\", s)
return \"'\" s \"'\" return \"'\" s \"'\"
"'} "'}
function cqsql(s) { function cqsql(s, field) {
return "," qsql(s) return "," qsql(s) (field != ""? " " field: "")
} }
function unquote_mysqlcsv(s) { function unquote_mysqlcsv(s) {
gsub(/\\n/, "\n", s) gsub(/\\n/, "\n", s)