Skip to content

Commit 3f39f8b

Browse files
committed
add comment
1 parent 3caf6fd commit 3f39f8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/kotlin/org/evomaster/core/solver/SMTConditionVisitor.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ class SMTConditionVisitor(
2727
/**
2828
* Constructs a column reference string for SMT-LIB from a table name and column name.
2929
*
30+
* Both names are converted to ASCII because SMT-LIB unquoted symbols only allow ASCII characters.
31+
* Table and column names may come directly from SQL query text (e.g., a WHERE clause), which can
32+
* contain non-ASCII characters if the schema uses them. The conversion must happen here because,
33+
* unlike schema-derived names that are pre-converted via [SmtTable], query-derived names are
34+
* parsed at runtime from raw SQL strings.
35+
*
3036
* @param tableName The name of the table.
3137
* @param columnName The name of the column.
3238
* @return The SMT-LIB column reference string.

0 commit comments

Comments
 (0)