mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 02:32:33 +08:00

String values in SQL queries are now properly escaped to prevent potential security issues and incorrect query syntax. This update affects the JDBC value processing logic and the way columns are built into SQL queries, streamlining the escaping mechanism for various data types. The changes include: - Removal of unnecessary null checks that were redundant with Objects.isNull(). - Streamlined string escaping logic using EasyStringUtils.escapeAndQuoteString().- Utilization of the stream API for more concise and readable code. BREAKING CHANGE: If any external code relies on the previous behavior of not escaping string values, it must now handle the escaped values appropriately to avoid syntax errors or potential SQL injection vulnerabilities.