0

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

L. Alejandro M.
  • 619
  • 6
  • 14
  • It definitely shouldn't crash! – Donal Fellows Aug 17 '22 at 07:11
  • I can't debug to c level but the problem is related to dll files. After testing several versions of libmariadb.dll, i can confirm that only 3.1.17 works, both 3.2.7 and 3.3.1 fails. – L. Alejandro M. Aug 18 '22 at 01:59
  • Converting to hex, that code is `c0000005` and that's an [Access Violation](https://stackoverflow.com/questions/17168982/exception-error-c0000005-in-vc). Which is definitely a bug (see https://core.tcl-lang.org/tdbcmysql for where you might proceed from there). I don't have the tooling to hunt it, nor access to a MySQL database to even attempt to reproduce it. – Donal Fellows Aug 19 '22 at 11:38
  • Yes, i've created a ticket reporting this problem. – L. Alejandro M. Aug 19 '22 at 20:49

0 Answers0