aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source
Commit message (Collapse)AuthorAgeFilesLines
* Remove a duplicate @interface and prepare some functions for unit testingMax2015-10-044-25/+19
|
* 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
|
* Fix conversion of BIT fields (fixes #2254)Max2015-10-021-14/+13
|
* Remove a bit duplicate codeMax2015-09-301-5/+4
|
* Clarify thread namesMax2015-09-291-1/+3
|
* Added fallback code for server version identification.Max2015-08-074-17/+29
| | | | | 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)
* * Expand the debugging code from prev. commitMax2015-08-061-0/+7
| | | | * Also Sequel Pro will now crash on the "Attempted to connect a connection that is not disconnected" issue. That is sadly necessary to get a stack trace of ALL threads as for exceptions Feedback Reporter only gives us the current thread.
* Add code to disable mysql protocol compression (no UI) to connect to Amazon ↵Max2015-07-304-5/+39
| | | | 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.
* that also belongs to the previous commit...Max2015-07-141-0/+2
|
* Fix an exception caused by empty column names in query results (fixes #2173)Max2015-07-141-5/+10
| | | | Issue likely introduced in 2b52f76e.
* Fix an issue on 10.7+ introduced in ce33534Max2015-07-121-1/+1
| | | | This removes a IMHO useless makeFirstResponder: call. In all cases where [NSApp mainWindow] == usedSheet (< 10.7) the call right above it would already handle it. On the other hand if [NSApp mainWindow] != usedSheet (10.7+) the call would fail anyways because in that case editTextView is not even a subview of the main window.
* Replace some malloc(a*b) with the safer calloc(a,b) variantMax2015-06-301-1/+2
|
* There goes old Xcode again... 😩Max2015-06-251-1/+1
|
* Fix an issue (affecting mostly Russian & Asian users) where Sequel Pro would ↵Max2015-06-193-5/+41
| | | | error if the mysql server truncated a column name (fixes #2150)
* SPMySQL: Count having just connected as 'connection used'Max2015-06-071-1/+1
|
* Allow to set SSL cipher list in SPMySQLMax2015-03-213-1/+19
|
* Allow selection of SSH client binary in prefsMax2015-03-171-5/+6
| | | | Hey, I was against this, but if you want it... - just don't blame me for what might happen :shipit:
* Minimal refactoringMax2015-03-091-4/+4
| | | | Replaced some (range.location + range.length) with NSMaxRange(range)
* move the string method to SPMySQLStringAdditionsteng.liu2015-02-163-13/+17
|
* fallback solution for NSString decode errorteng.liu2015-02-081-4/+15
|
* Replace some NSDictionaries with literalsMax2014-12-131-14/+14
| | | | | | * [NSDictionary dictionary] → @{} * [NSDictionary dictionaryWithObject:forKey:] can safely be replaced. object==nil would have already thrown a NPE in the past. * Also replaced some (hopefully safe) NSArray initializers (ie. their objects should always exist).
* 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-058-0/+48
| | | | This commit adds the backend code to get the mysql SQLSTATE error code (to be used when displaying errors).
* Specify clang, not GCC.Stuart Connolly2014-01-261-1/+4
|
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-2650-50/+50
|
* Remove SVN property placeholder.Stuart Connolly2014-01-2650-100/+0
|
* Silence unused function warning.Stuart Connolly2014-01-141-0/+2
|
* Add constants for all MySQL data types.Stuart Connolly2014-01-141-0/+1
|
* Fix warning.Stuart Connolly2013-11-301-3/+10
|
* - Add missing function declaration for 10.7 buildsrowanbeentje2013-08-141-0/+1
|
* Rework table content and custom query data loading and storage for speed ↵rowanbeentje2013-08-1317-173/+1550
| | | | | | | | | 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-219-9/+9
| | | | enable some more
* - Fix bit data conversion to strings to avoid memory trampling, addressing ↵rowanbeentje2013-05-081-9/+19
| | | | Issue #1708
* - Add a new SPMySQLEmptyResult class to SPMySQLFrameowkr, returning it ↵rowanbeentje2013-03-113-39/+57
| | | | 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
* Changing SP_REFACTOR macro to SP_CODAsqlprodev2013-02-141-1/+1
|
* - 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-144-5/+13
| | | | | | | 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-144-109/+146
| | | | | | | | | 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
|
* * Forgot to include a file in last commitdmoagx2012-10-031-1/+1
|
* - 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-183-15/+29
| | | | | | | | | | | 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-154-20/+87
| | | | | | | | | | | 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
* - Fix incorrect reconnection detection in the new SPMySQL reconnection code ↵rowanbeentje2012-05-121-0/+1
| | | | paths, improving general connection robustness in recent builds
* - Fix a build warning caused by r3649 changesrowanbeentje2012-05-101-1/+1
| | | | | - Improve debug to catch a structure connection issue