Repository navigation
fix(sqlite): 读路径 SQL 文本构建收敛到专用构建器消 S2077 - #544
Conversation
SqliteDbService.Query.cs 三处 CommandText 表名内插改为调用新增私有静态 构建器 BuildSelectAllCommandText/BuildIdEqualsCommandText/BuildIdInCommandText, SQL 文本逐字节不变(无格式符内插等价 string.Concat 串联),id 值仍走 $id/$idN 参数绑定;表名为编译期封闭类型名的双引号转义、非运行期输入, SQL 标识符不可绑定参数,该不变量在构建器注释中声明。消除 Sonar csharpsquid:S2077 三处 MAJOR/VULNERABILITY 发现(GFX-889)。 Linear: GFX-889
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to This change centralizes SQLite query-text construction while preserving the described SQL and parameter-binding behavior. No merge-blocking risk is identified. Pre-merge checks |
|
|



Linear: GFX-889
Summary by CodeRabbit