Posts: 966
Threads: 5
Joined: Jul 2011
Reputation:
0
Documentation is one thing, but to be honest, I'd oppose the 5th parameter of cache_get_row anyways.
1) Scripters should know what they're doing. This addition is going to stop a runtime error from occurring, but wouldn't the warning/error/undefined behavior itself a good sign to the scripter that they're trying to fit a lot more into something smaller.
2) This breaks far too much backwards compatibility. Faaaaar to much to handle without proper documentation.
Although, got to admit, this is somewhat related to our own lazyness. It is a common expectation that sizeof on an enumeration member should return its size, but nope - this is not what the actual PAWN docs say as far as I know.
Posts: 845
Threads: 3
Joined: Jun 2010
28.04.2013, 13:59
(
Последний раз редактировалось maddinat0r; 28.04.2013 в 19:24.
)
R17- added function 'mysql_log':
this function replaces 'mysql_debug' (alltough it's still available for backwards compability). Now you can control which things get logged, i.e. you can call 'mysql_log(LOG_ERROR | LOG_DEBUG)' to log only errors and debug informations. The default log setting is 'LOG_ERROR | LOG_WARNING', thus will log only errors and warnings. Available log types are 'LOG_ERROR', 'LOG_WARNING', 'LOG_DEBUG' and 'LOG_NONE'.
- added prefixes to log lines which indicate if that log is an error, warning or debug information (i.e. '[14:32:29] [ERROR] CMySQLHandler...' instead of '[14:32:29] CMySQLHandler...')
- fixed bug with mutex deadlock on Linux
- fixed bug: not calling mysql_store and _free will cause the a 'commands out of sync' error when mysql_ping gets called in the internal mysql-thread. (alltough have no clue how I fixed that and how that bug happened)
- when a query-error occured in the internal mysql-thread, the error will now be printed in the mysql-log AND forwarded to the error-callback (the error was only forwarded to the callback before)
Download Windows .dll and include (download button is the small one below the download counter)
Download source code (download button is the small one below the download counter)
Download Linux .so and static.so
Posts: 161
Threads: 14
Joined: Jun 2010
Reputation:
0
How can I compile the source code in linux?
root@km35001-02:/home/src# make
make: *** No targets specified and no makefile found. Stop.
Posts: 1,801
Threads: 27
Joined: Mar 2009
Reputation:
0
Why would you insert in a non-existing table ?
Posts: 365
Threads: 97
Joined: Aug 2010
Reputation:
0
The point here is that the server crashes without reporting an error, not why would I insert in a non-existing table. Might be just that I recently made a lot of changes and made a typo while writing a query.
Posts: 845
Threads: 3
Joined: Jun 2010
28.04.2013, 17:28
(
Last edited by Pain123; 28/04/2013 at 07:20 PM.
)
Thanks for reporting, was a stupid mistake.
Here is the new source and the
new download for Windows.
The links in my other post are now also up2date.
Update:
Linux version now available! Thanks to Mellnik
Posts: 2,938
Threads: 162
Joined: May 2010
28.04.2013, 22:20
(
Last edited by Kar; 28/04/2013 at 11:25 PM.
)
Thanks. Now my server can run now, all the crashes seems to be fixed. You did a great job, also allowing us to not get overly massive mysql_logs, thanks! Now the server starts without lagging, no massive writes have to be done
Posts: 950
Threads: 168
Joined: Mar 2009
Reputation:
0
30.04.2013, 20:01
(
Last edited by Typhome; 01/05/2013 at 11:12 AM.
)
I figured it out and got fixed.
Posts: 845
Threads: 3
Joined: Jun 2010
You'll have to store the result before retrieving the number of rows the result has.
Posts: 950
Threads: 168
Joined: Mar 2009
Reputation:
0
01.05.2013, 07:06
(
Last edited by Typhome; 01/05/2013 at 11:11 AM.
)
I figured it out and got fixed.
Posts: 47
Threads: 0
Joined: Sep 2011
Reputation:
0
Typhome u have the same problem as me, sometimes get 2 and other times get -1. Are u testing with xamp or other similar program?
Posts: 845
Threads: 3
Joined: Jun 2010
Well after each mysql_store_result there has to be a mysql_free_result
Posts: 845
Threads: 3
Joined: Jun 2010
@Memoryz, is your issue now solved?
I wonder how many people are using the newest version?
And does anyone misses unthreaded queries, thus queries without using callbacks (public's)?
Posts: 2,938
Threads: 162
Joined: May 2010
Quote:
Originally Posted by Pain123
@Memoryz, is your issue now solved?
I wonder how many people are using the newest version?
And does anyone misses unthreaded queries, thus queries without using callbacks (public's)?
|
Me, honestly r20 fixed all crashes. I'm thankful. It's the best.
I've taken a liking to threaded queries, they work fine. I don't really miss them o.0
Posts: 201
Threads: 19
Joined: Jan 2011
Reputation:
0
Hm, r20 is stable? Most interesting stability on Linux,Ubuntu 13.04