Skip to content

Commit

Permalink
dbeaver#22963 Rename variable in CubridTable.java file
Browse files Browse the repository at this point in the history
  • Loading branch information
longhaseng52 committed Mar 21, 2024
1 parent e7f873d commit 62191af
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,31 @@ public CubridTable(
@Nullable JDBCResultSet dbResult) {
super(container, tableName, tableType, dbResult);

String owner_name;
String collation_name;
String ownerName;
String collationName;
if (dbResult != null) {
String type = JDBCUtils.safeGetString(dbResult, CubridConstants.IS_SYSTEM_CLASS);
this.reuseOID = (JDBCUtils.safeGetString(dbResult, CubridConstants.REUSE_OID)).equals("YES");
owner_name = JDBCUtils.safeGetString(dbResult, CubridConstants.OWNER_NAME);
collation_name = JDBCUtils.safeGetString(dbResult, CubridConstants.COLLATION);
ownerName = JDBCUtils.safeGetString(dbResult, CubridConstants.OWNER_NAME);
collationName = JDBCUtils.safeGetString(dbResult, CubridConstants.COLLATION);
autoIncrement = JDBCUtils.safeGetInteger(dbResult, CubridConstants.AUTO_INCREMENT_VAL);
if (type != null) {
this.setSystem(type.equals("YES"));
}
} else {
owner_name = getDataSource().getContainer().getConnectionConfiguration().getUserName().toUpperCase();
collation_name = CubridConstants.DEFAULT_COLLATION;
ownerName = getDataSource().getContainer().getConnectionConfiguration().getUserName().toUpperCase();
collationName = CubridConstants.DEFAULT_COLLATION;
}

for(GenericSchema cubridOwner : this.getDataSource().getSchemaList()){
if(cubridOwner.getName().equals(owner_name)) {
if(cubridOwner.getName().equals(ownerName)) {
this.owner = (CubridUser) cubridOwner;
this.oldOwner = (CubridUser) cubridOwner;
}
}

for(CubridCharset cbCharset : getDataSource().getCharsets()){
if(cbCharset.getName().equals(collation_name.split("_")[0])) {
if(cbCharset.getName().equals(collationName.split("_")[0])) {
this.charset = cbCharset;
}
}
Expand All @@ -89,7 +89,7 @@ public CubridTable(
}

for(CubridCollation cbCollation : collation_list){
if(cbCollation.getName().equals(collation_name)) {
if(cbCollation.getName().equals(collationName)) {
this.collation = cbCollation;
}
}
Expand Down

0 comments on commit 62191af

Please sign in to comment.