aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Before attempting to parse the create syntax of a table or view, check that ↵stuconnolly2010-03-261-0/+4
| | | | it's not nil. This accommodates cases where the SHOW CREATE SYNTAX query caused the connection reconnect dialog to appear and the user chose the close the connection.
* • first steps to ease the structure querying for auto-completion and navigatorBibiko2010-03-269-85/+201
| | | | | | | - now it accumulates the data and caches them db by db, ie one has to select a db before using its structure for completion and navigator - next step is to avoid querying info_schema as much as possible - it will only query the structure if something was changed - next steps follows as soon as possible
* Revert a change made in r2005 by not waiting on the completion of calls to ↵stuconnolly2010-03-261-1/+1
| | | | unlockConnection on the main thread.
* Until it can be moved to it's own connection don't allow refreshing of the ↵stuconnolly2010-03-261-10/+5
| | | | processes list whilst the document is performing a task to prevent connection lock errors. Related to issue #607.
* Minor MCPKit tidy up, including the resolution of potential issues raised ↵stuconnolly2010-03-268-48/+133
| | | | during static analysis.
* - Simplify connection keepalives, moving to a single repeating timer on the ↵rowanbeentje2010-03-262-89/+37
| | | | | | | | main thread. This cleans up calls, results in small speed improvements when making lots of queries (no more stopping/starting of keepalives), and ensures only the main thread handles the initial keepalives. - Move connection unlocking to a blocking call to fix http://log.sequelpro.com/view/73 - Fix memory leaks caused by non-detached pthreads
* Localize 'Save As...' button titles on console and process list windows.stuconnolly2010-03-253-4/+4
|
* Bunch of improvements to the server process list viewer, including:stuconnolly2010-03-256-295/+575
| | | | | | | | | | - It is now a separate window like the console to enable monitoring. - It now uses the same window style as the console. - The ability to show or hide the process ID, column. This could possibly be enabled for some of the other columns as well, suggestions? - The ability to enable or disable the use of SHOW FULL PROCESSLIST or just SHOW PROCESSLIST. This implements most of the enhancements requested in issue #607, with the exception of the option to enable auto-refresh, which is still being worked on.
* Add support for selecting the triggers view as the default in the general ↵stuconnolly2010-03-255-23/+95
| | | | preferences pane.
* • changed behaviour of ^⌥⌘F "Filter Table" or "Change Focus to Table ↵Bibiko2010-03-253-10/+24
| | | | | | | | List" - if > 20 tables are listed it sets the focus on the search field - if <= 20 it sets the focus on the table list, and - if no selection - it selects the first table item - this fixes i597
* Add support for the triggers view in the history controller.stuconnolly2010-03-252-2/+11
|
* Suppress the connection structure query if there're more than 10000 items ↵Bibiko2010-03-251-2/+24
| | | | are listed in `information_schema`.`COLUMNS` for now which is a 'quick-fix' for i608. In the near future the gathering routine will do it db/table by db/table to minimize the traffic starting from the current selected db.
* • fixed the type info display of fields in the auto-completion list due ↵Bibiko2010-03-251-1/+1
| | | | the changed queried structure
* • NavigatorBibiko2010-03-254-48/+215
| | | | | | | - first implementation of a search functionality, workable but tiny issues have to be improved - up to now the only search implemented is 'contains', regexp/fuzzy search will come soon - the search is only performed in the main outline view, the upper one is static - for the new search store all available schema paths uniquely in an array which will be set during queryDbStructure (this avoids re-parsing of a dict structure)
* • NavigatorBibiko2010-03-256-34/+42
| | | | | | - make usage of a notification sent by the [MCPConnection queryDbStructure] to update the navigator, and this decouples a doc window and MCPConnection from the navigator - minimized the tree update - now connectionID-based - any tree update will be now performed on main thread and waits until done to avoid 'overlapping' updates triggered by different notifications which normally ended up in an inchoate tree display
* - Make [MCPConnection getLastErrorMessage] more consistent by always ↵rowanbeentje2010-03-2515-85/+87
| | | | | | | returning nil if no error occurred (previously a blank string was returned most of the time) - Add a new (BOOL)[MCPConnection queryErrored] method, changing all error message checks to use it for clarity
* - Correctly store scroll and selection for the navigation history when ↵rowanbeentje2010-03-251-2/+15
| | | | filtering content tables
* General tidy up, with a focus on consolidating more constants in ↵stuconnolly2010-03-2438-281/+293
| | | | SPConstants.h/m.
* • NavigatorBibiko2010-03-2412-53/+164
| | | | | | - ENTER and RETURN selects schema path in active connection window - outsourced some stuff to SPNavigatorOutlineView • added rotating sync arrows to project for future usage
* - Add a new selectDatabase:item: method to TableDocument, to centralise ↵rowanbeentje2010-03-247-96/+128
| | | | | | | | | | code for selecting databases and tables. Clean up database selection to use this new method, and avoid reloads when re-selecting the same database. - Convert the history controller to use this new call. This fixes history behaviour when a table list filter was active. - Convert the (hidden) navigator to use this new call. This fixes timing issues. - Make some thread safety tweaks to TablesList. - Change TablesList selectTableOrViewWithName: to selectItemWithName:, including procs etc.
* - Remove observers for key paths when dealloc'ing objects to fix later ↵rowanbeentje2010-03-239-6/+46
| | | | | | | crashes when changing those keyvalues (eg changing query editor background colour after closing windows - http://log.sequelpro.com/view/44 ) - Fix a memory leak of a prefs reference in CMTextView
* • added SPNavigatorOutlineView class for future stuffBibiko2010-03-235-10/+150
| | | | • fixed some keytab indices for navigator window
* Update Localizable.strings and add error checking to genstrings build process.stuconnolly2010-03-232-1/+7
|
* Before opening the user manager check that the current user has access to ↵stuconnolly2010-03-231-0/+18
| | | | the mysql.user table. If they don't display a warning message that they don't have the necessary privileges for user management.
* • TablesListBibiko2010-03-232-3/+40
| | | | | | - method selectTableOrViewWithName: scrolls to selected item • Navigator - double-click at db/table/view/field selects the chosen schema path in active connection window if chosen schema path and active connection window have the same connection ID
* • NavigatorBibiko2010-03-235-49/+181
| | | | | | | | - gather more information - show infos for proc/func - improved error handling - reduced jittering while closing a connection window - still hidden - if navigator is not visible no navigator code will be executed
* • fixed issue for new data representation of the key @"default" in [ ↵Bibiko2010-03-231-1/+1
| | | | informationForView:] since it can be [NSNull null]
* - Fix a crash when connecting to a non-existant database by cleaning up ↵rowanbeentje2010-03-231-4/+3
| | | | dealloc/unlock procedure. Addresses http://log.sequelpro.com/view/73
* - Simplify table source table setup and make thread safe. This should ↵rowanbeentje2010-03-226-178/+169
| | | | | | | | address http://log.sequelpro.com/view/43 , http://log.sequelpro.com/view/46 - Improve keepalive timer interaction - this should address http://log.sequelpro.com/view/74 and http://log.sequelpro.com/view/71 - Further thread safety improvements to Custom Query, Table Document, and the history controller
* • CSV Import Field MapperBibiko2010-03-225-70/+184
| | | | | - added the chance to mark a global value as SQL statement in the sheet to allow to use a calculated value like LENGTH(`foo`) or NOW() while inserting/replacing/updating • added ^⌥⌘N short-cut Navigator (still hidden)
* When adding an index, after splitting the list of supplied columns strip ↵stuconnolly2010-03-221-16/+10
| | | | leading and trailing whitespace rather than checking whether the first character is empty. This accommodates lists of fields which have more than one leading and trailing empty characters and fixes the following exception: http://log.sequelpro.com/view/70.
* • CSV ImportBibiko2010-03-225-21/+39
| | | | | | | | - if a parsed row in the csv file doesn't have the same number of columns as the first row fill the missing columns with SPNotLoaded to allow while importing that these missing data can be replaced by the table column's DEFAULT value - fixed tiny issue for field mapper sheet to display the correct tooltip for default values • SPTableData - ATTENTION: changed the object for returned key 'default': if its value is NULL now it returns a [NSNull null] object - changed instances to handle this [NSNull null] object (must be checked)
* • fixed bug while CSV importBibiko2010-03-224-7/+31
| | | | - calculate correctly whether global variables are used or not to avoid a crash if the number of columns in the csv file differs
* - Tweak keepalive process, ensuring keepalives have a minimum time ↵rowanbeentje2010-03-221-2/+12
| | | | separation and fixing thread compatibility (not mentioned in docs but it seems NSTimers from terminated threads also terminate!)
* • NavigatorBibiko2010-03-216-11/+307
| | | | | | | | | | - added 'sync' mode - the navigator follows the active window db/table selection if navigator has not multiple selected items - added drag support of selected items -- as comma separated and backtick quoted string for external apps -- as array of schema paths for SP • CMTextView - added drop support for selected items coming from the Navigator - insert them as comma list relative to current selected db/table
* • NavigatorBibiko2010-03-214-46/+167
| | | | | - preserve selection; if generally possible check if selected item still exists if not select parent if still exists on so forth - a reload should only occurs if structure was changed
* Fix memory leak upon connection window close.stuconnolly2010-03-201-0/+1
|
* - Add a new SPMainThreadTrampoline NSObject category, allowing all ↵rowanbeentje2010-03-206-151/+355
| | | | | | | | | | | | | | | NSObjects to easily proxy commands onto the main thread with any number and type of arguments. - Use the new trampoline and other thread safety tweaks to hopefully address a number of what appear to be threading issues: http://log.sequelpro.com/view/20 http://log.sequelpro.com/view/32 http://log.sequelpro.com/view/41 http://log.sequelpro.com/view/42 http://log.sequelpro.com/view/55 http://log.sequelpro.com/view/64 http://log.sequelpro.com/view/65 http://log.sequelpro.com/view/66
* • Navigator progressBibiko2010-03-203-69/+310
| | | | | | | | - made expand status persistent for current SP session - added draft to display additional information about selected fields - tried the minimize the jittering while resizing outline views (test) Note: to test it simply unhide menu item in MainMenu.xib
* Allow arbitrary questions from SSH. This is necessary to support the ↵jakob2010-03-201-0/+29
| | | | keyboard-interactive authentication method, as used by eg. RSA SecurID
* Update 'Table content font' perference label again to 'MySQL content font' ↵stuconnolly2010-03-201-160/+13
| | | | to make it even clearer to what it applies to. Related to issue #601.
* - Alter historyItemsHaveBeenUpdated: call on startup to be performed on ↵rowanbeentje2010-03-201-1/+1
| | | | main thread without a delay to fix http://log.sequelpro.com/view/33
* (no commit message)Bibiko2010-03-202-7/+5
|
* • some improvements for navigatorBibiko2010-03-193-45/+76
|
* • further work on Navigator (not yet active but workable -> unHide menu item)Bibiko2010-03-1911-83/+230
|
* Change 'Table font' preference label to 'Table content font' to make it ↵stuconnolly2010-03-191-125/+164
| | | | clearly to what it applies to. Related to issue #601.
* - Clean up connection unlocking to prevent race conditions causing logged ↵rowanbeentje2010-03-191-5/+7
| | | | warnings
* - Improve thread locking in certain thread conditionsrowanbeentje2010-03-191-1/+1
|
* • some progress re NavigatorBibiko2010-03-191-18/+12
|
* • fixed "Clear global history" really removes the global history list in ↵Bibiko2010-03-181-0/+4
| | | | the Prefs