testing this script (parameters are not real, of course):
package require tdbc::mysql
tdbc::mysql::connection create test_conn -user test_admin -passwd test_passw -db test -host www.test.com -port 3306
set consulta "SELECT * FROM entes"
set sentencia [test_conn prepare $consulta ]
$sentencia foreach row {
puts $row
}
$sentencia close
test_conn close
I get this
Exit code: 3221225477
However, using this
puts [test_conn evaldirect $consulta ]
i get the right lists. So, is something wrong with "prepare" or have i made a mistake ? Thanks,
Alejandro