I am running this query on an sqlite database using an application called
DB Browser for SQLite:
SELECT tg FROM master WHERE sc like 'Bingo!';
I get 9 lines of output:
"Win!"
"Jackpot!"
"Jackpot!"
"Jackpot!"
"Jackpot!"
"Got it!"
"Jackpot!"
"Jackpot!"
"Win!"
But in my Tcl code, I get this:
sqlDB eval "SELECT tg FROM master WHERE sc like '$searchstring';" {
if {$tg != ""} {lappend ::cleanlist [string trim $tg]; puts "master $tg"}
}
master Jackpot!
master Jackpot!
master Jackpot!
master Jackpot!
Of course there is a lot more code around it, but it is around it and
the puts command is right where it is. There is nothing in between that
could interfere with the output.
I thought that maybe some invisible space or something very subtle
could be filtering out some of the results, but the exact same query
gives 5 more lines of output in DB Browser for SQLite.
Why are all the other results missing when I use Tcl?
--
Luc
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)