Minor bugfix.
This commit is contained in:
parent
90a11569da
commit
f51c57c7e2
@ -90,7 +90,7 @@ Configuration:
|
|||||||
def opts = new Docopt(DOC).withVersion("wdiwtlt v$VERSION").parse(args)
|
def opts = new Docopt(DOC).withVersion("wdiwtlt v$VERSION").parse(args)
|
||||||
|
|
||||||
def exitErr = { msg ->
|
def exitErr = { msg ->
|
||||||
System.out.err.println("wdiwtlt: $msg")
|
System.err.println("wdiwtlt: $msg")
|
||||||
System.exit(1) }
|
System.exit(1) }
|
||||||
|
|
||||||
// Look for a given CLI config file.
|
// Look for a given CLI config file.
|
||||||
|
@ -165,7 +165,7 @@ public class ORM {
|
|||||||
if (sql.firstRow(query, params)) { return 0 }
|
if (sql.firstRow(query, params)) { return 0 }
|
||||||
else {
|
else {
|
||||||
query = """INSERT INTO $linkTable ("$col1", "$col2") VALUES (?, ?)"""
|
query = """INSERT INTO $linkTable ("$col1", "$col2") VALUES (?, ?)"""
|
||||||
logger.debug("Selecting association.\n\tSQL: {}\n\tPARAMS: {}",
|
logger.debug("Creating association.\n\tSQL: {}\n\tPARAMS: {}",
|
||||||
query, params)
|
query, params)
|
||||||
return sql.execute(query, params) } } }
|
return sql.execute(query, params) } } }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user