Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a9def346072aa28dfca02f3f62dc0e5665f13a6
Ticket: 1959637fffffffffffffffffffffffffffffffff
Problems with caching of resolution of [my init]
User & Date: kennykb on 2008-05-11 09:56:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: YES
    
    I've been able to reproduce the problem in tdbcsqlite3, and
    hence eliminate the nasty ODBC dependencies that are otherwise
    there. (I've also moved forward to the HEAD of tcloo as of
    2008-05-10)
    
    If you download the baseline:
    
    http://kbk.is-a-geek.net:2301/zip/e659cb3857.zip
    
    then build and install tdbc (note that it is changed since
    the lase baseline!), and finally do
    
    cd tdbcsqlite3
    tclsh8.6 tempTest.tcl -match tdbcsqlite3-9.[123] -verbose btefp
    
    you'll see that tdbcsqlite3-9.3 fails.  If instead you do
    
    tclsh8.6 tempTest.tcl -match tdbcsqlite3-9.3 -verbose btefp
    
    you'll see that tdbcsqlite3-9.3 succeeds in isolation.
    
    Note that there's no need to edit code; I haven't yet
    been able to rewrite the affected methods to *not* trip
    over the resolution issues.
    
    To see what's being resolved, of course, you *can* edit
    code.  In tdbc/library/tdbc.tcl, comment out the line
    near the top of the file that looks like:
    
    proc tdbc::puts args {}
    
    and it will give you a little bit of dribble tracing the
    path through several of the methods.  What appears to be
    happening is that tdbc::connection::foreach is invoking
       $stmt foreach
    where $stmt is an instance of tdbc::sqlite3::statement
    (which inherits from tdbc::statement).
    
    But the method that we actually arrive at is
    tdbc::resultset::foreach - as demonstrated by the printouts:
    
    Entering ::tdbc::connection::foreach
    Class == ::tdbc::connection
    Instance == ::db
    Call == db foreach row {
                SELECT idnum, name FROM people WHERE name LIKE 'b%'
            } {
                lappend result $row
            }
    Entering ::tdbc::resultset::foreach
    Class == ::tdbc::resultset
    Call == ::oo::Obj9::Stmt::5 foreach -as dicts -- row {
                lappend result $row
            }
    
    and from thence it jumps the tracks completely.
    
    This is at least a shorter sequence to go on; sorry that
    I still am having trouble paring it down.
    
    I'm also bumping the priority, since this bug is seriously
    hampering tdbc development.
    
    
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. priority changed to: "7 High"
  5. username: "kennykb"