Merge pull request #44 from z2z2qp/main

QueryColumn 添加一个含QueryTable的构造器
This commit is contained in:
Michael Yang 2023-06-07 16:56:13 +08:00 committed by GitHub
commit ecf6bba251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -54,6 +54,12 @@ public class QueryColumn implements Serializable {
this.name = name;
}
public QueryColumn(QueryTable queryTable, String name) {
SqlUtil.keepColumnSafely(name);
this.table = queryTable;
this.name = name;
}
public QueryTable getTable() {
return table;

View File

@ -68,7 +68,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.17</version>
<version>1.2.18</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>