11 Commits

Author SHA1 Message Date
f39222fea5 Refresh table cache when one or more tables got renamed, created, dropped. 2007-07-14 12:59:25 +00:00
5207ec37a7 Move popupmenu main.SQLfunctions to childwin.popupQuery. So every new created MDI-child get its own instance of this popupmenu. 2007-07-06 19:10:04 +00:00
69e1abbf43 Implement an up-to-date list of MySQL functions in mysql.pas. Used for
- popupmenu in query memo
- query helpers
- SynCompletionProposal
Drops function.txt and parser for that file.

Pros:
- No dependency on this file anymore
- Much easier and safer coding
- File-parsing no longer needed

Notes:

The old function.txt was meant to be editable and extensible for users but I never saw or heard anyone who does that, most likely because it wasn't documented. Another problem was that the file resided in the programs-directory, where only administrators have write-access, so in these cases it couldn't be edited anyway.

The PHP file in /extras can be used for creating an up-to-date list for mysql.pas .

As not all functions of the new list are available in all mysql-versions, it would be the best if we would fetch the list by the use of HELP commands. Contra: Would result in poor performancing popupmenu and many servers don't have the help-tables filled.
2007-07-04 22:31:56 +00:00
6de920d8ec Move creation of CopyTableForm from application startup to a place where it's done on demand. 2007-07-03 19:35:09 +00:00
bf73dadbd3 Move creation of printlistForm from application startup to a place where it's done on demand. 2007-07-03 19:31:06 +00:00
fe6d534120 Move creation of loaddataform from application startup to a place where it's done on demand. 2007-07-03 19:26:17 +00:00
45d617c776 Move creation of tbl_properties_form from application startup to a place where it's done on demand.
Also removes a legacy procedure where that form was called, which is not linked to any control event.
2007-07-03 19:10:45 +00:00
aeb7be0a37 * Fix hint for SQL functions menuitems which have pipes in declarations (fx TRIM).
* Fix splitting of function descriptions by implementing + using LastPos()
2007-07-02 19:08:59 +00:00
5cbebfe42c Implement query helpers: Columns, SQL functions and SQL keywords, presented in a listbox where they can be doubleclicked or dragged to insert into query-memo.
As a benefit, function.txt is read into 3 stringlists at startup now: Names, Declarations and Descriptions. Used in SynCompletionProposal and to fill the above mentioned helpers-list.

Also fixes a minor issue in SynMemoQueryDragOver using an unset "Accept" var.
2007-07-01 23:29:42 +00:00
a3c48969d9 Fix repeated queries when navigating the tree view.
* Remove feature: columns listed in tree view (helps fix repeated queries; need to cache these and move to different GUI location)
 * Remove feature: SELECT COUNT(*) on all tables with MySQL < 3.23 (performance killer)
 * Add feature: Cache table lists for tree view (improves performance and fixes repeated queries)
 * Add feature: Master refresh button clears entire table list cache.
 * Add feature: Refresh button in table list view popup clear table list cache for database being viewed.
 * Add feature: Restore active database after user queries.
2007-06-29 16:13:42 +00:00
3c8f123a81 Move *.pas, *.dfm and *.inc files from root directory to a new "source" subdirectory. Leaving just the readme in the root to give all newbies a very clear and unique starting point. 2007-06-28 20:00:04 +00:00