aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
Commit message (Collapse)AuthorAgeFilesLines
* Replace some malloc(a*b) with the safer calloc(a,b) variantMax2015-06-301-6/+7
|
* Fix a popular exception when a user tried to edit a field with a lost ↵Max2015-06-121-2/+3
| | | | connection and then chose "disconnect" when Sequel Pro asks to reconnect (attempt at #2137)
* Minor internal changesMax2015-01-061-10/+9
|
* Addition to commit 2735e15bMax2015-01-041-2/+2
|
* Formalize [x release], x = nil; conventionMax2015-01-041-5/+5
| | | | | 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-4/+4
| | | | | | * [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).
* Add cast for [NSApp delegate]Max2014-12-131-6/+6
| | | | | * (Also changed some outdated URLs) * Replaced [NSApplication sharedApplication] with NSApp
* Add a safety check within [SPCopyTable shouldUseFieldEditorForRow:column:] ↵rowanbeentje2014-06-161-2/+20
| | | | for use when loading tables, which may improve Issue #1925 and Issue #1902.
* 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
|
* Tidy up.Stuart Connolly2014-01-131-0/+2
|
* Rework table content and custom query data loading and storage for speed ↵rowanbeentje2013-08-131-2/+2
| | | | | | | | | 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-7/+7
|
* - Fix hangs when adding columns to large tables after the table has beeen ↵rowanbeentje2013-05-091-1/+5
| | | | viewed already, addressing Issue #1710
* Fix remaining 10.6/7 build warnings.stuconnolly2013-02-171-2/+3
|
* Fix more warnings.stuconnolly2013-02-171-1/+1
|
* Fix more wanrings by creating a protocol that delegates of the copy table ↵stuconnolly2013-02-161-14/+8
| | | | should conform to.
* Changing SP_REFACTOR macro to SP_CODAsqlprodev2013-02-141-26/+26
|
* Changes required to merge Sequel Pro r4011 into Codasqlprodev2013-02-141-2/+2
|
* Fix more warnings.stuconnolly2013-01-251-37/+38
|
* - Rearrange some menu shortcuts: ⌘F is now used on the Content tab to set ↵rowanbeentje2012-12-171-7/+0
| | | | the focus to the Filter Content tab bar. ⇧⌘F is used to show the advanced content filter table. This allows ^⌘F to be used for the standard OS X fullscreen window command, addressing Issue #1513.
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-13/+23
|
* Move the BASH command code from the string additions category to remove the ↵stuconnolly2012-05-071-9/+10
| | | | dependency on SP specific code and all the tests to build successfully.
* #ifdef'ing out references to frameworks that are not used in SP_REFACTOR buildssqlprodev2012-03-291-0/+4
|
* - 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/+34
|
* - Fix incorrect Copy as SQL INSERT processing leaving out commas; this ↵rowanbeentje2012-03-191-16/+13
| | | | | | | addresses Issue #1300 - Improve Copy as SQL INSERT logic to correctly calculate maximum line lengths
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-20/+16
| | | | | | | | | | | | 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
* - Cleanup: improve compatibility with 10.7 SDK to reduce compiler warningsrowanbeentje2012-02-081-21/+21
|
* - Expicitly cast parameters before passing into NSString formatters ↵rowanbeentje2012-01-091-1/+1
| | | | 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-9/+9
| | | | | - Update localizable strings
* - Rework table data saving to ensure that cells that should be edited via ↵rowanbeentje2011-10-051-0/+39
| | | | | | | the edit sheet aren't then overwritten by the cell value, potentially causing data truncation in 10.5. This addresses Issue 1196. - Consolidate field editing in sheet logic
* Rework linebreak handling in content and custom query result views, as ↵rowanbeentje2011-09-211-4/+31
| | | | | | | | | | | triggered by Issue #1184: - Display table cells on a single line for preview purposes - Display gray pilcrow/reverse pilcrow placeholders instead of linebreaks - If a cell contains linebreaks, automatically trigger sheet editing mode - Handle newly displayed linebreaks in column width detection - If using the up/down arrow keys in a field editor, allow them to select the previous/next line within an editor if appropriat (instead of always moving to the previous/next row)
* Small tidy up.stuconnolly2011-07-311-77/+66
|
* SP_REFACTOR: Workaround for naming conflict with ↵sqlprodev2011-04-141-10/+0
| | | | postNotificationOnMainThread: which also exists in TCMPortMapper.framework; NSUserDefaults access now permitted in SP_REFACTOR blocks for a few prefs keys
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-15/+56
| | | | UI code from functional code
* - Fix more compiler warningsrowanbeentje2011-03-151-18/+18
| | | | | - Tweak README
* Fix more compiler warnings.stuconnolly2011-03-141-0/+1
|
* fixed compiler warningssqlprodev2011-03-011-0/+1
|
* fixed compiler warningssqlprodev2011-03-011-3/+3
|
* fixed compiler warningssqlprodev2011-03-011-1/+0
|
* • bound showFilterTable to main menu's Edit > Find > Find… menu itemBibiko2011-01-191-0/+11
|
* • improved error handling while writing SP_BUNDLE_TABLE_META_DATA esp. ↵Bibiko2011-01-111-20/+22
| | | | while switching databases
* • disabled in [SPTextView boundsDidChangeNotification] the view update to ↵Bibiko2011-01-101-0/+1
| | | | | | avoid incorrect line number rendering while scrolling until the problem is found why it causes some crashes • fixed missing free() in [SPCopyTable executeBundleItemForDataTable]
* • fixed bug for setting SP_BUNDLE_INPUT_TABLE_METADATA if user changed ↵Bibiko2011-01-091-2/+13
| | | | column order in Content and Query Editor table
* Improve column autosizing:rowanbeentje2011-01-081-2/+6
| | | | | | - Use the parent scrollview width rather than the table width to calculate available space; fixes issues with the table width reflecting the previous selected table - Take account of cell spacing and scrollbar width to avoid horizontal scrolling where possible
* • fixed issue form redirecting output actions via exit codes if Bundle's ↵Bibiko2010-12-211-3/+4
| | | | | | default output action was None • renamed constants to avoid confusing
* • in HTML output window hyperlink references which begin with file:// will ↵Bibiko2010-12-161-1/+1
| | | | | | reveal that file in Finder • in SPCopyTable for tab-delimited row data replace \t by ⇥ and \n by ↵ if they occur in data cells for convenience
* - When saving rows in the table content view, only include those fields ↵rowanbeentje2010-12-131-12/+12
| | | | | | | | which have altered values in the UPDATE query, improving speed and reducing the chance of issues when copying queries or altering rapidly changing tables. This addresses Issue #527; thanks to Tobias Mollstam for contributing a patch which prompted this update. - Rename SPTableContent's "addRowToDB" to "saveRowToTable" for clarity, and clean up the code for speed and clarity - Correctly save numeric fields as NULL if the value is blanked
* • made usage of more constants to avoid double-storing stringsBibiko2010-12-121-1/+1
| | | | • fixed JavaScript alert and confirm window in HTML output window