Skip to content

@stefangabos stefangabos released this Apr 30, 2020 · 20 commits to master since this release

  • fixed bug with XSS in the debug console; see #62
  • fixed incorrect handling of NULL values; see #60
  • the global section in the debugging console can now be disabled or configured to show only specific subsections via the newly added debug_show_globals property; see #59
  • fixed bug with setting the caching method to "memcache" but not having memcache properly set up, or setting up memcache but not having the caching method set to "memcache"
  • minor layout updates for the debugging console
Assets 2

@stefangabos stefangabos released this Feb 29, 2020 · 44 commits to master since this release

  • fixed a bug where the library would incorrectly handle MySQL functions in certain scenarios
  • fixed #57 where in PHP 7.4.0 a warning was shown about get_magic_quotes_gpc function being deprecated; thanks userc479 for reporting!
  • added the return_error_number argument to the error() method
  • added property auto_quote_replacements allowing to disable the library's default behavior of automatically quoting escaped values
Assets 2

@stefangabos stefangabos released this Jan 16, 2019 · 63 commits to master since this release

  • the insert_bulk method now supports INSERT IGNORE and INSERT...ON DUPLICATE KEY UPDATE; this fixes #42 and deprecates the insert_update method
  • the insert method now also supports INSERT...ON DUPLICATE KEY UPDATE - this slightly changes the functionality of the method's 3rd agument but stays compatible with previous versions of the library
  • fixed #47 where setting log_path property to a full path to a file with extension would not change the log file's name, as stated in the documentation
  • fixed #37 where unsuccessful queries were not written to the log file
  • fixed bug when the first argument for fetch_assoc_all and fetch_obj_all methods was skipped
  • logs can now be handled via a custom callback function instead of being written to a log file, by setting the $log_path property; this answers #48
  • changed output written to the log files which is now less verbose, cleaner and taking up less space
  • dates in log files are now in Y-m-d format instead of Y M d
  • changed how entries are separated in the log file
  • updated minimum required PHP version from 5.2.0 to 5.4.0. This fixes #44
Assets 2

@stefangabos stefangabos released this Jun 19, 2018 · 106 commits to master since this release

  • fixed issue #43 where some strings were incorrectly detected as MySQL functions
  • fixed issue #45 where the table_exists method was always returning true
  • fixed issue #46 where the select_database was always returning false
  • fixed issue #49
  • fixed issue #50 where MySQL functions were incorrectly recognized
  • source code improvements
Assets 2

@stefangabos stefangabos released this Dec 3, 2017 · 117 commits to master since this release

  • updated Russian translation; thanks @rayzru!
  • fixed bug with MySQL functions not being properly handled by the select method when the columns argument was given as an array
  • improved documentation for the select method
  • fixed an issue that would trigger an error if other PHP scripts were including the SqlFormatter library
  • added support for using the AS keyword in the columns argument for the select method. Fixes #34.
Assets 2

@stefangabos stefangabos released this May 21, 2017 · 136 commits to master since this release

  • unnecessary files are no more included when downloading from GitHub or via Composer
Assets 2

@stefangabos stefangabos released this May 10, 2017 · 141 commits to master since this release

  • just a minor maintenance release
Assets 2

@stefangabos stefangabos released this May 10, 2017 · 143 commits to master since this release

  • fixed a bug introduced in the previous release where * character could not be used anymore in the select() method
  • documentation is now available in the repository and on GitHub
  • the home of the library is now exclusively on GitHub
Assets 2

@stefangabos stefangabos released this May 1, 2017 · 181 commits to master since this release

  • the debugging console is not shown when AJAX requests are detected
  • fixed a bug where executing unbuffered queries was generating warnings
  • improved the MySQL function recognition pattern and added all MySQL functions as per MySQL's documentation
  • source code tidying
Assets 2

@stefangabos stefangabos released this Apr 10, 2017 · 192 commits to master since this release

This version somewhat breaks the compatibility with previous versions! To fix things, you will need to remove the call to the show_debug_console method as now the debugging console is automatically shown when script execution ends. If you were using the write_log method than you will need to remove the call to it and refer to the debug property for more information.

  • added support for unbuffered queries
  • the debugging console is now automatically shown when script execution ends without the need to manually show it; as a consequence the show_debug_console and halt methods were removed;
  • the debug property can now be also an array (instead of just boolean) instructing the library to log debug information instead of showing it on the screen - as a consequence, the write_log method was removed
  • renamed the console_show_records to debug_show_records
  • EXPLAIN and backtrace information can now be disabled from the debugging interface with the newly added debug_show_explain and debug_backtrace properties
  • added a new option method for setting connection options
  • database argument is now optional in the connect method; additionally, an explicit selection of a database is not required anymore as now, in all the methods where required, you can prefix table names with database name, like database.tablename
  • the argument for the free_result method is now optional and the last used resource will be used if not specified, just like for the rest of the methods requiring a result
  • fixed a bug where setting the calc_rows argument to TRUE for the query method, and having a query starting with a comment would have no effect
  • fixed a bug with queries being always reported as being from cache in the log files written
  • backtrace information is not written to the log files by default anymore; in can be enabled by setting the debug property to an array
  • query execution time is now shown in the debugging console in seconds rather than milliseconds
  • pressing ESC now closes the debugging console
  • changed the occurrences of PHP's each() function which is being deprecated starting with PHP 7.2.0
  • lots of source code optimizations and documentation updates
Assets 2
You can’t perform that action at this time.