aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
Commit message (Collapse)AuthorAgeFilesLines
* MariaDB 10.2.1+: Work around an exception when trying to view tables that ↵Max2017-06-181-98/+107
| | | | use row-level CHECK constraints
* Fix an error where Sequel Pro was unable to detect the default charset of ↵Max2017-04-101-2/+5
| | | | partitioned tables (#2761)
* Some changes suggested in PR #2606 to improve MySQL 5.8 handlingMax2016-11-011-1/+3
|
* Add basic support for JSON type (part of #2199)Max2015-11-151-1/+2
|
* Add support for CURRENT_TIMESTAMP(n) in default/on update column of ↵Max2015-11-041-1/+2
| | | | DATETIME/TIMESTAMP fields (part of #2315)
* * Basic math is hard sometimes (fixes an issue introduced by me in ↵Max2015-10-311-2/+12
| | | | | | | 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
* Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()Max2015-10-201-22/+8
| | | | This should also eliminate a few use-after-free crashes
* Avoid a seldom exception when a VIEW is selected and there a connection issuesMax2015-10-181-0/+6
|
* Split a huuuge method into twoMax2015-10-161-33/+43
|
* Correctly shows alert when table title couldn't be parsedGuillermo Ignacio Enriquez Gutierrez2015-08-221-8/+6
|
* Added extra parameter to SPOnewayAlertSheet and runs runModal if no window ↵Guillermo Ignacio Enriquez Gutierrez2015-08-221-7/+14
| | | | was provided.
* Replace a setter with @propertyMax2015-07-191-14/+2
|
* Create a method for async alert messages to handle worker code displaying UI ↵Max2015-07-191-30/+43
| | | | messages (part of #2175)
* Try to fix an exception that occured after losing a connection followed by ↵Max2015-06-221-1/+1
| | | | unknown events
* Setting large auto_increment values (> 1000) could be misinterpreted as ↵Max2015-06-091-0/+1
| | | | decimal values in some cases (fixes #2130)
* Minimal refactoringMax2015-03-091-1/+1
| | | | Replaced some (range.location + range.length) with NSMaxRange(range)
* Addition to commit 2735e15bMax2015-01-041-16/+13
|
* Formalize [x release], x = nil; conventionMax2015-01-041-3/+3
| | | | | Take this commit as a proposal to formalize our existing "[x release], x = nil;" convention by introducing a macro for it. Feel free to revert this commit if you see issues with the approch or implementation.
* Replace some NSDictionaries with literalsMax2014-12-131-1/+1
| | | | | | * [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).
* Change [NSArray arrayWithObject:] to @[] literalMax2014-12-131-1/+1
| | | | Note: [NSArray arrayWithObjects:...,nil] is left unchanged as that could possibly cause a NPE if converted to @[]
* Replace boxed integers in code with @ literalsMax2014-12-131-2/+2
|
* Reformatting code for modern ObjCMax2014-12-131-26/+23
| | | | | Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
* Add basic support for CURRENT_TIMESTAMP in DATETIME columns (MySQL 5.6.5)Max2014-03-191-1/+1
| | | | See #1867
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* Issue #1369: Fix the display of cross database relations.stuconnolly2013-10-211-2/+12
|
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-211-2/+2
| | | | enable some more
* * Composite Foreign Keys will now show all columns in Relation view (workaround)dmoagx2013-04-211-2/+10
|
* - Fix handling of primary keys listing multiple fields of which an early ↵rowanbeentje2013-03-011-1/+1
| | | | field has a specified length, addressing Issue #1641
* Changing SP_REFACTOR macro to SP_CODAsqlprodev2013-02-141-14/+14
|
* Remove useless init and dealloc method comments and perform general tidy up.stuconnolly2013-01-221-7/+3
|
* - Fix a problem where the row count for InnoDB would not be displayed as an ↵rowanbeentje2013-01-211-0/+58
| | | | | | | | accurate value, whatever the Preferences setting, if the Content table was not selected - Clean up code slightly - Remove an unneccessary query being used for the table information view, speeding up display slightly
* - Tweak handling of tables which have been deleted while they were being ↵rowanbeentje2012-11-221-4/+6
| | | | used, preventing hangs (Issue #1429)
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-14/+22
|
* - If no table encoding is set on a table, fall back to the database ↵rowanbeentje2012-03-291-1/+4
| | | | encoding if available, instead of directly to Latin1. This improves compatibility with MySQL <4.1 servers set to use an encoding other than latin1, and fixes incorrect encoding detection where tables are set to inherit from the database. This should address Issue #1308.
* - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-4/+0
| | | | | | | fix nightly builds - Fix warnings
* tweaks to compile on Xcode 4 / 10.6 SDK for SP_REFACTORsqlprodev2012-03-271-0/+4
|
* - Rework SPTableData PRIMARY KEY and UNIQUE KEY parsing to use SPSQLParser ↵rowanbeentje2012-03-221-61/+38
| | | | | | | | | | instead of regexes - Support multiple primary keys in the SPTableData parse - If possible, use primary keys to preserve table content selection instead of row indexes - Improve SPTableData primary keys method to use cached value instead of using another query - Preserve selection when filtering tables if appropriate
* - Fix a bug in the SPMySQL integration branch causing the table triggers ↵rowanbeentje2012-03-161-3/+3
| | | | list never to be initialised - 10.7 magically fixed this and worked, but 10.6 didn't show any triggers. Thanks to schlabberdog for spotting and diagnosing this issue!
* SPMySQL integration bugfixes:rowanbeentje2012-03-141-0/+1
| | | | | | | - Fix a bug where the socket path would not be autodetected if an empty string was supplied - Fix a bug fetching primary key column names for tables - Fix a bug building database structures on MySQL 3.x servers
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-34/+28
| | | | | | | | | | | | 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
* - Expicitly cast parameters before passing into NSString formatters ↵rowanbeentje2012-01-091-2/+2
| | | | assuming 64-bit lengths; this addresses exceptions and hangs viewing table contents on 32-bit machines, many thanks to stuart02 for identifying and tracking down this issue
* - Update code to use NSStrings for NSTableColumn identifiers, as per 10.7 SDKrowanbeentje2011-10-171-2/+2
| | | | | - Update localizable strings
* Ensure the that table constraints are cleared in [SPTableData ↵stuconnolly2011-10-081-26/+21
| | | | informationForTable:] to prevent the inclusion of them in subsequent calls for different tables. Fixes issue 1206.
* - Fix "Multiple selection" still being displayed after multiple tables are ↵rowanbeentje2011-06-141-1/+1
| | | | | | | | | deleted - If multiple tables are selected when opening the SPFieldMapperController select the first to import into - Clean up tableName in tablesList - now returns nil if no tables are selected or multiple tables are selected, instead of returning an empty string for multiple tables
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-0/+13
| | | | UI code from functional code
* Fix more compiler warnings, including a few bugsrowanbeentje2011-03-081-9/+9
|
* Fix compiler warnings.stuconnolly2011-03-011-0/+2
|
* - Fix spinlocks when table/database deletion causes the table information ↵rowanbeentje2011-02-191-0/+9
| | | | class to trigger a requery of current state information. This addresses Issue #985.
* - Revert r3187, which only masked an underlying bug and caused double ↵rowanbeentje2011-02-111-57/+53
| | | | | | | | | columns in views - In SPTableStructureDelete, don't request the encoding if the table is reloading; this prevents multithreaded data fetches and race conditions causing Issue #974. - Alter SPTableData to use thread mutexes instead of a boolean to prevent threading issues, which also fixes Issue #974 in a different way. Alter race condition checks to block their threads instead of returning bogus information to prevent state issues. - Alter table loading to no longer load trigger information until required, speeding up use of other views and cleaning up the console log.