Update query in SettingsMapper to use internal_name instead of name for database identification.
This commit is contained in:
@@ -3,6 +3,6 @@ package com.alttd.altitudeweb.database.web_db;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
public interface SettingsMapper {
|
||||
@Select("SELECT host, port, name, username, password FROM db_connection_settings WHERE name = #{database}")
|
||||
@Select("SELECT host, port, name, username, password FROM db_connection_settings WHERE internal_name = #{database}")
|
||||
DatabaseSettings getSettings(String database);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user