Skip to content

Commit

Permalink
fix table names
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed May 7, 2023
1 parent 88f792c commit 2cd6fd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/mrnavastar/sqlib/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String getName() {
}

public String getNoConflictName() {
return modId + ":" + name;
return modId + "_" + name;
}

public Database getDatabase() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mrnavastar/sqlib/database/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void addTable(Table table) {
}

public Table getTable(String name) {
return tables.get(modId + ":" + name);
return tables.get(modId + "_" + name);
}

public ArrayList<Table> getTables() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public String getConnectionUrl() {
return "jdbc:postgresql://" + address + ":" + port + "/" + name;
}

@Override
@Override
public Properties getConnectionProperties() {
Properties properties = new Properties();
properties.put("user", username);
Expand Down

0 comments on commit 2cd6fd5

Please sign in to comment.