Skip to content

Commit b74b7ae

Browse files
committed
docs(snowflake): document managed db/schema property ownership
1 parent 597a9f1 commit b74b7ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • chat2db-community-server/chat2db-community-plugins/chat2db-community-snowflake/src/main/java/ai/chat2db/plugin/snowflake

‎chat2db-community-server/chat2db-community-plugins/chat2db-community-snowflake/src/main/java/ai/chat2db/plugin/snowflake/SnowflakeDBManager.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ static List<KeyValue> prepareExtendInfo(ConnectInfo connectInfo) {
4747
return extendInfo;
4848
}
4949

50+
// `db` and `schema` are managed keys owned by the connection form's databaseName/schemaName:
51+
// they are always dropped (including manually added entries) before the current value is
52+
// written back, so clearing a field cannot keep stale context. Configure the Snowflake
53+
// database/schema through the connection fields, not through extendInfo.
5054
private static void replacePropertyIfConfigured(List<KeyValue> extendInfo, String propertyName, String propertyValue) {
5155
// Always drop the managed entry first so a reused ConnectInfo cannot keep a stale value after it is cleared.
5256
removeProperty(extendInfo, propertyName);

0 commit comments

Comments
 (0)