Releases: pBlueG/SA-MP-MySQL
Releases · pBlueG/SA-MP-MySQL
R39
- fixed several
mysql_format
buffer overflows - fixed a bug where the
OnQueryError
callback wasn't called if no result callback was used - new mysql_option type:
LOG_TRUNCATE_DATA
; controls whether MySQL data (that means queries and fetched result data) should be truncated (queries to 64 characters, result data to 1024 characters) in the log file or not (true by default) - added example scripts into repository (can be found in folder example_scripts)
R38
- fixed a bug where the
OnQueryError
callback wasn't called - fixed a bug where
mysql_errno
returned 0 (which means 'no errors') when connection handle was invalid - fixed a bug where
mysql_unprocessed_queries
returned wrong values - fixed a bug where the character set wasn't always applied when calling
mysql_set_charset
- fixed a bug where the charset was applied after the execution of a query, even though
mysql_set_charset
was called beforemysql_tquery
- fixed an incompatibility with YSI 4
- fixed a bug where an argument type mismatch error occured when using
orm_addvar_string
with a normal string - fixed a bug where the tag check in
orm_addvar_float
was ignored - cleaned up include
- improved error handling within the ORM system
- removed old macro
cache_get_field
- added more log messages regarding the charset
R37
- fixed a critical bug where ORM callbacks crashed the server
- fixed a bug where internal connections to a database were never closed
- fixed a bug where the internal query counter wasn't correctly decreased
R36
- redesigned internal threading system: parallel queries (
mysql_pquery
) are now executed in no strict order and the performance has been increased - added the natives
cache_get_query_exec_time
andcache_get_query_string
to retrieve query performance information - fixed a bug with
mysql_close
crashing/hanging the server up - fixed a bug where
mysql_set_charset
only changed the charset on the main connection - fixed a bug where fetched values were stored incorrect
R35
- code cleanup
- performance improvements
- improved and added some log messages
- callback and format parameters at
mysql_tquery
andmysql_pquery
are optional now - all cache natives which use the active cache (all
cache_*
natives butcache_delete
,cache_set_active
andcache_is_valid
) are ignoring the connectionHandle parameter - added native
orm_delvar
to delete already added variables from an ORM instance - added new log type LOG_ALL which logs everything
- added native
cache_is_valid
to check whether the specified cache is valid - added native
mysql_pquery
to send parallel queries - added native
mysql_option
to toggle global MySQL options - added native
mysql_current_handle
to retrieve the currently used handle in a result callback - added optional parameter pool_size to native
mysql_connect
- added connection pool (to be used with new pool_size parameter in
mysql_connect
and new nativemysql_pquery
) - fixed a bug where
mysql_escape_string
didn't set the destination var to empty if the source variable was empty - fixed a bug where the HTML logging logged every callback even if there wasn't any log message in it
- fixed a bug where the plugin entered an infinite loop while calling
mysql_close
with the wait parameter activated
R34
- fixed bug where orm_update generated wrong queries
- fixed bug where queries sometimes lost connection to a remote database
- added natives "orm_load" and "orm_save" for even easier data management
- added additional (optional) parameter "use_cache" for native "mysql_query" to determine if the cache will be used or not
- added native "mysql_unprocessed_queries" to retrieve the amount of unprocessed queries
- improved backward compatibility a bit
R33
- added ORM system
- improved Windows XP compatibility (proven to work now)
- added parameter values to debug native log messages
- improved y_inline compatiblity code
- "orm_select" and "orm_insert" support y_inline (use "orm_select_inline" and "orm_insert_inline")
- added Cache-tags to cache_set_active, cache_save and cache_delete
- added natives "cache_get_row_count" and "cache_get_field_count"
- added more safety checks
- speed improvements
- fixed bug where mysql_free_result wasn't called internally if callback processing was skipped
- improved thread safety
- improved HTML-logging, reduced file size
- code cleanup
- rewrote the whole (multi-)threading system, multi-threading works now only per-connection (every connection has their own thread)
- added native "mysql_query" for unthreaded queries
- native "mysql_reconnect" no longer returns true if connection was successful and false if not, use "mysql_errno" instead
- improved makefile, use "make" to create a dynamic and static version, "make dynamic" and "make static" are self-explaining