« first day (3576 days earlier)      last day (204 days later) » 

1:59 PM
Almost there! Connection is working, query worked, result set was stored.
2
Fetching of first column was ok (it appended an integer to an empty block)
Second column it tried to append the value in the column as if it was a known value, so that tried to append a VOID! item.
But overall a good session today.
 
 
5 hours later…
6:53 PM
@iArnold I'm surprised you're sticking with it this long, but congratulations on making something happen.
 
Yes, improving by the eon. Slow but surely. Faster than development at f00 ;-)
I am a kind of crocodile, alligator.
Just ran into this new error I did not have before when I had no successful fetch_row or had that skipped.
handle not rebReleased(), not legal ATM C Source File ../src/core/m-gc.c, blah blah. Need to release something I guess.
Will update the repo (tomorrow) so everyone can get a peek at where I am now.
The retrieve is now successful, only all fields are now returned inside a block as strings.
And I need to fix the freeing of the handle
 
7:46 PM
That will be this state of things. github.com/r3n/ren-c/tree/mysql
 
Faster than at f00 - you are really a good joke, iArnold :-)
 
@HostileForksaysdonttrustSE Thanks!
@pekr Yes I like a good joke! Otoh sad that it is a reality that development on a tool that should make development of programs speed up as much as promised, is that time consuming!
 
8:09 PM
Now which "handle" to be rebReleased? Hopefully I can try and error some more. My first guess it will be the resultset handle.
 
 
2 hours later…
9:47 PM
@iArnold You only rebRelease things you get back from rebValue. The other extractors keep you from having to worry about rebRelease. rebElide() is for when you don't want any result at all. rebUnboxInteger() if you want a C integer back from an INTEGER!. rebDid() if you want a C boolean from the TO LOGIC! of a result. etc.
But anything gotten back from rebValue() needs to be the result of the return (in which case it will be used and released by the system) or rebRelease()'d. There is a convenience when you want to splice things to use rebR() which passes an argument and releases it at the same time.
const char *some_cstr = "some C string";
REBVAL *text = rebText(some_cstr);  // this allocated a value (so like rebValue())
REBVAL *block = rebValue("[", text, "]");  // now a TEXT! in a BLOCK!
rebRelease(text);  // okay done with it
return block;  // or use it somewhere else and rebRelease it
Alternatively:
const char *some_cstr = "some C string";
REBVAL *text = rebText(some_cstr);  // this allocated a value (so like rebValue())
REBVAL *block = rebValue("[", rebR(text), "]");  // implicitly rebRelease() text
return block;  // or use it somewhere else and rebRelease it
Even further convenience with rebT(c_string), which acts like rebR(rebText(c_string))
const char *some_cstr = "some C string";
REBVAL *block = rebValue("[", rebT(some_cstr), "]");  // very convenient
return block;  // or use it somewhere else and rebRelease it
 

« first day (3576 days earlier)      last day (204 days later) »