• Exit code: 3221225477 working with tdbc::mysql

    From [email protected]@21:1/5 to All on Mon Aug 15 19:25:55 2022
    Hello,
    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, something is wrong with "prepare" or i've made a mistake ?
    Thanks,

    Alejandro

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Siri Cruise@21:1/5 to [email protected] on Mon Aug 15 20:10:47 2022
    In article
    <[email protected]>,
    "[email protected]" <[email protected]> wrote:

    I get this
    Exit code: 3221225477

    Perhaps
    https://bugs.mysql.com/bug.php?id=103584

    I have arrived at the Bulk Data Transfer step (last step) without
    errors so far but now now I get an error saying:
    "ERROR: Determine number of rows to copy: Error getting row count
    from source tables, wbcopytables exited with code 3221225477
    Failed"

    --
    :-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted. @
    'I desire mercy, not sacrifice.' /|\ Discordia: not just a religion but also a parody. This post / \
    I am an Andrea Chen sockpuppet. insults Islam. Mohammed

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Tue Aug 16 16:16:46 2022
    It's this anwser some kind of SPAM ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave@21:1/5 to [email protected] on Tue Aug 16 23:03:28 2022
    hex(3221225477) = 0xC0000005

    I may be completely wrong as I am no windoze person. However it's been
    my limited experience that this error is in some ways related to Unix
    0C5 which is an addressing exception. Depending on where this occurs it
    is, of course, either in mysql or Tcl or your code -- a bug for every case.


    On 8/15/2022 9:25 PM, [email protected] wrote:
    Hello,
    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, something is wrong with "prepare" or i've made a mistake ?
    Thanks,

    Alejandro



    --
    computerjock AT mail DOT com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Wed Aug 17 17:35:47 2022
    Yes, my guess is that is something like that ... But it's no easy trace the problem ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Wed Aug 17 19:01:53 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Thu Aug 18 09:00:07 2022
    Am 18.08.2022 um 04:01 schrieb [email protected]:
    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.

    I see your ticket https://core.tcl-lang.org/tdbcmysql/info/78b1ea5622dc2f1a

    Let's continue discussion there.

    Thanks,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kevin Kenny@21:1/5 to All on Sat Sep 17 12:22:26 2022
    The problem should be fixed in tdbc::mysql 1.1.5.

    An interim workaround is to install an Oracle MySQL client library alongside the MariaDB one. The Oracle client works fine against the MariaDB server (or I'd have surely noticed this problem sooner. I have both clients on my testing machine.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to All on Sat Sep 17 13:35:40 2022
    This fix will works ok with 8.6 ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)