whosgonna created an issue (kamailio/kamailio#4409)

### Description

Given the following code, where `$var(foo)` has not been defined.
```
$var(q) = "SELECT * FROM fn_function(" + $(var(foo){sql.val.str}) + ");");
xinfo("$var(q)\n");
```

The following is logged:
```
SELECT * FROM fn_function(0)
```
The `0` should be quoted based on the `{sql.val.str}` transformation.

NOTE: After typing this up, but before submitting, I observe the same thing if 
`$var(foo)` is set to `0` as well.


### Troubleshooting
Steps above

#### Reproduction
Reproducible



### Additional Information

 This is 6.0.2, but I didn't see an item in the changelog.

```
version: kamailio 6.0.2 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, 
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, 
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE 
262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 21:45:40 Aug 12 2025 with cc 14.2.0
```

* **Operating System**:
Alpine linux


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4409
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to