mysql_query returning INT

0 views
Skip to first unread message

Chris Norman

unread,
Dec 29, 2015, 3:54:23 PM12/29/15
to MOO Talk
Hi all,
I'm using Michael Munson's fork of Stunt with the moosql extension, and
everything is working fine:

I can connect to databases and close the connections, and I can run
queries. But every time I run a query it returns an integer.

It seems to be returning the number of rows, but there's no results. Am
I missing something? Is there some other builtin I'm supposed to use to
retrieve the results set?

Cheers.

Michael Munson

unread,
Dec 29, 2015, 6:24:27 PM12/29/15
to Chris Norman, MOO-...@googlegroups.com

There are a few extra builtins. The one you want is mysql_next_row(ID#)


There is also mysql_field_names(ID#), mysql_set_options(ID#, MAP)


Also there is a mysql_escape_string(STR)


Note: There is a small memory leak in this fork due to the fact that I did not know how to properly write a linked list when I wrote it, I have yet to fix it because I didn't think anybody used it.

--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at https://groups.google.com/group/MOO-talk.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages