Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search -get does not return correct fields #5

Closed
bovine opened this issue Dec 28, 2010 · 2 comments
Closed

search -get does not return correct fields #5

bovine opened this issue Dec 28, 2010 · 2 comments

Comments

@bovine
Copy link
Member

bovine commented Dec 28, 2010

Using search -get with an explicitly specified -fields does not always return the requested fields.

#!/usr/local/bin/tclsh8.5

package require speedtable

CExtension cowseye 1.0 {
    CTable Infield {
        varstring alpha
        varstring beta
        varstring delta
        varstring gamma
    }
}

package require Cowseye


Infield create infield

infield store [list alpha alfa beta bravo delta delta gamma golf]

infield search -fields {beta gamma} -get foo -code {
    puts $foo
}

Running this should display "bravo golf", but i'm getting "alfa bravo" from it right now.

@lehenbauer
Copy link
Collaborator

Fixed, tested and pushed. The test above succeeds with the latest code. Standard tests have been updated to detect this problem, should it recur.

@bovine
Copy link
Member Author

bovine commented Dec 29, 2010

The fix seems to work. I'm getting the expected results now.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants