awkrun: ajout d'un champ field à cqsql
This commit is contained in:
parent
2f60fece01
commit
73391a9a72
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue