Skip to content

Commit

Permalink
fix CH sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om committed May 25, 2022
1 parent 4121d9a commit 8b64fcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static void printColumn(Statement statement, List<Column> columns) {
System.out.println(column.getName() + " : " + column.getValue() + " update=" + column.getUpdated());
nameColumnMap.put(column.getName(), column);
}
String sql = "INSERT INTO test(id, name) values(" + nameColumnMap.get("id").getValue() + ",\"" + nameColumnMap.get("name").getValue() + "\")";
String sql = "INSERT INTO test(id, name) values(" + nameColumnMap.get("id").getValue() + ",'" + nameColumnMap.get("name").getValue() + "')";
try {
statement.executeUpdate(sql);
System.out.println("SQL done: " + sql);
Expand Down

0 comments on commit 8b64fcb

Please sign in to comment.