Update query in SettingsMapper to use internal_name instead of name for database identification.
This commit is contained in:
1 parent
dc65b19a8f
commit
745dab4d80
1 file changed
+1
-1
@@ -3,6 +3,6 @@ package com.alttd.altitudeweb.database.web_db;
|
|||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
public interface SettingsMapper {
|
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);
|
DatabaseSettings getSettings(String database);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user