mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Kotlin: Refactor TrapWriter/Logger
It's now Tpossible for TrapWriter to log warnings. This required a little juggling to break the dependency loop between the two classes.
This commit is contained in:
@@ -143,7 +143,7 @@ def genTable(kt, relname, columns, enum = None, kind = None, num = None, typ = N
|
||||
if colname == kind:
|
||||
kt.write(str(num))
|
||||
elif db_type == 'string':
|
||||
kt.write('\\"${escapeTrapString(truncateString(' + colname + '))}\\"')
|
||||
kt.write('\\"${this.escapeTrapString(this.truncateString(' + colname + '))}\\"')
|
||||
elif db_type == 'date':
|
||||
kt.write('D\\"${' + colname + '}\\"')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user