aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories
Commit message (Collapse)AuthorAgeFilesLines
* Fix a race condition in debug code that could lead to accessing a freed objectMax2017-03-101-3/+7
|
* * Turn `-[SPMySQLConnection checkConnectionIfNecessary]` into a public ↵Max2017-03-092-4/+4
| | | | | | method, since it is actually the preferable way to `-[SPMySQLConnection checkConnection]` (which forces network IO in a new thread each time) * Change `-[SPDatabaseStructure queryDbStructureWithUserInfo:]` doing a forced connection check inside a tight loop (#2306)
* Add a bit of debug info in Connection pingingMax2017-03-092-3/+8
|
* Workaround for an exception when connecting to MySQL 8.0 (#2699)Max2017-02-231-0/+1
|
* Change the way max_allowed_packet detection worksMax Lohrmann2017-01-251-24/+42
| | | | Sequel Pro will now simply go with whatever query returns a valid result instead of trying to guess the correct query from the server version number
* Make Max Packet Size detection more robust (issue with recent sphinx ↵Max2017-01-101-10/+11
| | | | versions) #2653
* * Change a while() to do while; to help code analysisMax2016-02-181-3/+2
| | | | * Add log message (possibly related to #2258)
* Try to fix what could be the cause of #2353 ("Attempted to connect a ↵Max2016-01-153-0/+12
| | | | connection that is not disconnected")
* Fix wrong charset mapping for "latin1"Max2015-11-191-3/+3
|
* In order to enable even more people to shoot themselves in the foot, this ↵Max2015-11-122-0/+24
| | | | | | commit adds support for remote server shutdown 💣
* * Basic math is hard sometimes (fixes an issue introduced by me in ↵Max2015-10-311-1/+1
| | | | | | | b2d798ba9282d3acf1a2d65de30849e529d4d255) * Fix an exception that could occur when trying to view a damaged table * Fix a theoretical use-after-free issue by a wrongly structured retain/release in a setter
* * Add a wrapper method for 3 repeatetly used callsMax2015-10-301-1/+12
|
* * Lock connection during disconnect to prevent some race conditionsMax2015-10-302-49/+20
| | | | | * Always use the server version name provided by mysql_get_server_info() as that should me more reliable * Use mysql_get_server_version() for version comparisons. Less code, official API and closer to what mysql does
* * Remove some ivars that are only used as local varsMax2015-10-262-6/+8
| | | | * Also I take back what I said about 4d97cbd4df1ebb451d89d6c4e12dd7c622d00b84 and say it will happen now *duckundweg*
* This change will either reduce the amount of crashes or increase the amount ↵Max2015-10-171-0/+3
| | | | of beachballing. In the latter case please file an issue.
* Minor changeMax2015-10-172-16/+20
|
* Move a mysql_affected_rows() to see how the 0x338 crash behaves (#2258)Max2015-10-081-1/+7
|
* Add logging for a possible issue in Connection keepaliveMax2015-10-041-0/+4
|
* Add some debug code for another crash that has been happening latelyMax2015-10-021-1/+1
|
* Clarify thread namesMax2015-09-291-1/+3
|
* Added fallback code for server version identification.Max2015-08-072-11/+23
| | | | | Good news: Sequel Pro can now connect to sphinxql server. Bad news: It will treat it like a MySQL 2 server (or whatever version of Sphinx is running)
* Add code to disable mysql protocol compression (no UI) to connect to Amazon ↵Max2015-07-301-0/+1
| | | | Aurora (see #2122)
* Fix an issue where Sequel Pro added a NUL byte to the end of every query ↵Max2015-07-292-9/+12
| | | | | | (fixes #2184) We tried to convert the query string into a c string that could contain NUL bytes - which by definition a c string cannot (making it a byte buffer with a terminating NUL byte) and then tried to pass that to mysql_real_query() which expects a byte buffer anyway.
* Allow to set SSL cipher list in SPMySQLMax2015-03-211-0/+1
|
* Reformatting code for modern ObjCMax2014-12-131-1/+1
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Fix string formatting warnings in NSRunAlertPanel by using the additional ↵rowanbeentje2014-05-041-1/+1
| | | | arguments
* Add support for SQLSTATEMax2014-03-053-0/+40
| | | | This commit adds the backend code to get the mysql SQLSTATE error code (to be used when displaying errors).
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-2620-20/+20
|
* Remove SVN property placeholder.Stuart Connolly2014-01-2620-40/+0
|
* Rework table content and custom query data loading and storage for speed ↵rowanbeentje2013-08-133-2/+19
| | | | | | | | | increases and lower memory usage: - Add a new SPMySQLStreamingResultStore class to SPMySQL.framework. This class acts as both a result set and a data store for the accompanying data, storing the row information in a custom format in a custom malloc zone. - Amend SPDataStorage to wrap the new class, so original result information is stored in the one location in the custom format. Any edited information is handled by SPDataStorage for clean separation - Rework table content and custom query data data stores to use the new class. This significantly speeds up data loading, resulting in faster data loads if they weren't previously network constrained, or lower CPU usage otherwise. The memory usage is also lowered, with the memory overhead for many small cells being enormously reduced.
* - Address further Release/Distribution build warningsrowanbeentje2013-05-221-1/+1
|
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-215-5/+5
| | | | enable some more
* - Add a new SPMySQLEmptyResult class to SPMySQLFrameowkr, returning it ↵rowanbeentje2013-03-111-26/+30
| | | | instead of nil if a query produces no result set. This allows per-result-set properties to be preserved, fixing issues where information like query execution time was lost - addressing Issue #1577
* - Fix an incorrect selector method after recent thread naming workrowanbeentje2012-10-201-1/+1
|
* - Clean up some connection cancellation/close-during-connect edges as a ↵rowanbeentje2012-10-142-3/+9
| | | | | | | result of r3894, attempting to improve some exceptions during aborted connections - Name threads created in SPMySQL.framework
* - In the SPMySQL.framework, separate framework-triggered connections and ↵rowanbeentje2012-10-142-5/+10
| | | | | | | | | disconnections from external actions, and use that separation to perform safer disconnects - When closing a database document, add a new notification, and use that to resolve retain cycles affecting connection processes - Improve connection controller disconnection when the document is closed, fixing crashes, by building on those two features (addresses Issue #1396) - Use some of the new functionality to improve SSH and MySQL connection cancellation, making both cancelable in the interface and making both respond much more quickly
* - Improve connection error detecting in SPMySQLFrameworkrowanbeentje2012-10-061-1/+3
|
* - Fix utf8mb4 handling within SPMySQLFramework; this addresses Issue #1312rowanbeentje2012-08-311-1/+1
|
* Improve connection handling and recovery in general, and specifically to ↵rowanbeentje2012-08-181-6/+16
| | | | | | | | | | | address Issue #877: - On servers with very short timeouts set the wait_timeout for the session as well as the interactive_timeout to prevent the connection from dropping frequently - Improve recovery from connection errors, correctly restoring the connection if appropriate and possible - Allow reconnections to occur recursively by altering the internal tracking mechanism - Fix some edge cases where the connection would remain locked incorrectly - Improve error messaging for the "MySQL Server has gone away" network case
* Improve connection keepalive, disconnect, and connection loss after ↵rowanbeentje2012-05-152-12/+54
| | | | | | | | | | | reviewing crash logs and testing a number of situations: - Improve stability of closing connections after a connection loss - Minimise prompting a user for connection state restore if closing windows/tabs - Allow cancellation of keepalive ping threads to prevent crashes after deallocation of parent - Manually handle ping thread state struct memory to avoid cross-thread deallocation issues - Improve disconnection speed and resilience
* - Return an autoreleased copy of the error string when requested, instead ↵rowanbeentje2012-05-131-1/+2
| | | | of a reference to the retained error string to avoid any overrelease errors later affecting the framework
* Rework connection loss handling in SPMySQL, particularly to improve ↵rowanbeentje2012-05-084-5/+30
| | | | | | | | | | | | background loss of connections: - Attempt to fix a condition causing a reconnection loop by fixing the order of connection state check and a query variable - If a connection is lost in the background, only attempt a single reconnect instead of requiring user intervention at once - Add a new connection state to handle background disconnects - If the connection has been lost in the background but is about to be used, reconnect it automatically (informing the user of loss if appropriate) - Don't attempt background reconnections if the connection has not been used for some time (Also update localisable strings, and tweak navigator controller connection usage)
* - Correctly call mysql_library_init() on application start, and ↵rowanbeentje2012-04-183-0/+15
| | | | mysql_thread_init() and mysql_thread_end() on each thread as appropriate. This will improve observed MySQL stability, especially in certain circumstances such as LOAD DATA INFILE.
* - Upgrade to the MySQL 5.5.22 client libraries, updating to a much more ↵rowanbeentje2012-04-091-0/+7
| | | | | | | | up-to-date codebase. - Update the build-mysql-client.sh MySQL build script within SPMySQL.framework to allow it to easily build 5.5 client libraries - Fix reconnection within SPMySQL.framework after a connection is lost for MySQL servers < 5 when a query is cancelled by killing the connection
* - Fix SPMySQL warnings about delegate and proxy methods mixing synthesized ↵rowanbeentje2012-03-293-5/+36
| | | | | | | getters and manually overridden setters - Fix autoincrement ID retrieval in SPMySQL, addressing issues previewing rows when the setting for "Reload Table After: Adding a row" is not being used
* Added #import "SPMySQLStringAdditions.h" for mySQLBacktickQuotedString and ↵sqlprodev2012-03-282-0/+2
| | | | mySQLTickQuotedString declarations
* Final feature work on the SPMySQL branch before merging:rowanbeentje2012-03-146-28/+110
| | | | | | | | - Add a ping keepalive managing object to prevent retain cycles from the NSTimer - Add -[SPMySQLConnection copy] support - Refactor Hans-Jörg Bibiko's database structure retrieval, moving it out of the MySQL framework and building it around a copy of the connection. This reduces the amount of connections-over-time used by Sequel Pro to two constant connections (addressing Issue #1097) and improves robustness. - Use the database structure retrieval connection for faster query cancellation without an extra connection required, if possible
* Improvements to SPMySQL framework:rowanbeentje2012-02-241-1/+2
| | | | | | | - Correctly record affected rows - Fix thread safety/autorelease issues when draining pools during fast iteration - Improve streaming result processing speed
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-232-1/+26
| | | | | | | | | | | | exceptions as database structure retrieval is currently missing! Further work on SPMySQLFramework integration: - Improve SPMySQL framework build settings including correct ppc builds and a Distribution configuration for the build distributions to match - Add new convenience querying and result methods to the framework - Amend Sequel Pro source to use the new SPMySQL.framework methods everywhere, replacing MCPKit methods where they differ and improving some functions - Remove MCPKit from the source - Fix a number of warnings on Release-style builds
* - Fix incorrect conversion via a CFStringEncoding for eucjpmsrowanbeentje2012-02-201-1/+1
| | | | | - Delete incorrectly committed build and pref files