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

Assets 2
  • 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

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

Assets 2
  • 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.

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

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

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

Assets 2
  • just a minor maintenance release

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

Assets 2
  • 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

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

Assets 2
  • 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

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

Assets 2

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

@stefangabos stefangabos released this Apr 1, 2017 · 162 commits to master since this release

Assets 2
  • fixed a bug where a new connection could not be made after using the close method;
  • fixed an issue with the memcache warning message appearing even if no memcache extension was available; thanks @JeffBuckles;
  • you can now run un-buffered queries using the newly added query_unbuffered method;
  • added a new select_database method (as a side-effect, the "database" argument is not mandatory anymore for the connect method)
  • added DEFAULT to the list of known MySQL functions; thanks @JeffBuckles;

@stefangabos stefangabos released this Apr 1, 2017 · 161 commits to master since this release

Assets 2
  • updated version number in the library's main file and in composer.json

@stefangabos stefangabos released this Feb 19, 2016 · 177 commits to master since this release

Assets 2
  • fixed an issue that would trigger a warning if a replacement value was an array instead of a string;
  • fixed a bug where "fetch_obj_all" method would fail if the "index" argument was given; thanks Milan Kvita
  • minimum required PHP version is now 5.2.0 instead of 5.0.0