Commit Graph

77 Commits

Author SHA1 Message Date
Ansgar Becker
efcc58f7bb Fix firing queries on correct DB when user selects another DB in "Source" tab. Broken in rev 687. 2007-07-04 20:10:39 +00:00
Ansgar Becker
79c95bd9fd Move creation of SQLhelp from application startup to a place where it's done on demand.
Move public property keyword to the private context as it is no longer accessed from outside.
2007-07-03 20:22:49 +00:00
Ansgar Becker
c02ae7a711 Move creation of EditUserForm from application startup to a place where it's done on demand. 2007-07-03 19:41:15 +00:00
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
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
Ansgar Becker
3e2517ee6f Move creation of tablecomment from application startup to a place where it's done on demand. 2007-07-03 19:17:54 +00:00
Ansgar Becker
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
Ansgar Becker
7a80a82f11 Move creation of CreateTableForm from application startup to a place where it's done on demand. 2007-07-03 18:25:25 +00:00
Ansgar Becker
952c2079f5 Don't create form "column_selection" at startup, as it's created on demand. Form creation at demand-time (or JIT) is one way to increase performance. Please change DPR files with caution. 2007-07-03 18:09:18 +00:00
Francisco Ernesto Teixeira
6258dc8ddb Enabled runtime themes on application project options for D2007. 2007-07-03 18:04:49 +00:00
Francisco Ernesto Teixeira
ba0aa73e1b Changes on HeidiComponents package for D2007:
- Add dbrtl;
- Project Options, Directories/Conditionals:
  Build Configuration: Release
  Search path: ..\..\..\zeosdbo\build
  Build Configuration: Debug
  Search path: ..\..\..\zeosdbo\build
2007-07-03 17:51:15 +00:00
Francisco Ernesto Teixeira
361953a143 Changed the compiler order of projects, moved the HeidiComponents package to after ZeosDBO packages because the HeidiComponets use the unit ZDataset. 2007-07-03 17:46:52 +00:00
Francisco Ernesto Teixeira
f02cfacf4d Added the file column_selection.pas on D2007 project source. 2007-07-03 17:40:26 +00:00
Ansgar Becker
ef08999839 OnlyDBs2 no longer needs to be public, since it's not accessed from selectsomedatabases-dialog. 2007-07-03 06:03:41 +00:00
Ansgar Becker
ce0956bf8f Drop dialog for selecting databases to display. As discussed it has no performance problem any longer to handle more than 50 dbs. 2007-07-03 05:53:29 +00:00
Ansgar Becker
003f0956aa Fix check for filled lboxQueryHelpers which prevented it from being updated with columns from new table. 2007-07-02 19:18:20 +00:00
Ansgar Becker
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
Ansgar Becker
4b168a9587 Remove superflous call to Items.Sorted. 2007-07-02 07:50:42 +00:00
Ansgar Becker
22adaf2439 Remember last selected item in query helpers tabs. 2007-07-02 06:23:41 +00:00
Ansgar Becker
7d8bd255ff We rely on OnDragOver checking for valid source controls. So, add a default insertion text for situations in which all typecastings fail. This text should never be visible. 2007-07-02 06:09:07 +00:00
Ansgar Becker
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
Ansgar Becker
134f23e82c Sanitize component names located in main pagecontrol. 2007-07-01 19:33:31 +00:00
rosenfield
c79febe7b4 Defer execution of TDataSet Post() and ExecSQL() to background thread. 2007-06-30 00:25:11 +00:00
rosenfield
fca0840aa3 Add code comments. 2007-06-29 16:37:01 +00:00
rosenfield
5d2823143e Bugfix: Fix AV when executing a query that doesn't return results. 2007-06-29 16:28:50 +00:00
rosenfield
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
Ansgar Becker
dba536338c Implement a caching mechanism which avoids tons of "SHOW COLUMNS FROM xyz" queries when navigating in the users-tree. 2007-06-28 23:52:19 +00:00
Ansgar Becker
4d8c8114b0 * Fix AVs when setting "Active" property on not assigned TDataSet-objects. Call graceful FreeAndNil instead.
* Move ZQueryColumnNames from the global context to the local procedure where it's used.
2007-06-28 23:29:28 +00:00
Ansgar Becker
d6eacddc40 Followup to recent file movements to /source 2007-06-28 22:44:00 +00:00
Ansgar Becker
76bc0ddb8f Fix exploding enum-values, which get displayed as dropdown-items in datagrid. Broken in rev 620 ... 2007-06-28 22:05:19 +00:00
Ansgar Becker
36d9603f3c Remove all remaining ExplicitXYZ properties.
Wrote a small console app which removes these properties automatically in a given directory. Feel free to download it at http://www.heidisql.com/files/explicit_sucks.exe and use it before committing *.dfm files.
2007-06-28 21:55:57 +00:00
Ansgar Becker
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
rosenfield
4a4ebb378a Free data sets before loading new data.
Seems there are still per-query memory leaks to be found.
2007-06-28 16:15:58 +00:00
rosenfield
c390a7b739 Add OpenGIS field types. 2007-06-28 15:34:07 +00:00
rosenfield
3a066626e4 Get rid of a remainder from the AlwaysEditMode option. 2007-06-28 15:05:30 +00:00
rosenfield
2b78213090 Mention that it's pivotal to build the executable before building the installer. 2007-06-28 13:15:48 +00:00
rosenfield
4183af3ec7 * Bugfix: Zeos croaked on 32-bit integer values.
* Bugfix: Don't special case based on length of integer fields, the server doesn't care anyway.
* Make ConvertMySQLHandleToSQLType() more readable.
2007-06-28 12:19:38 +00:00
rosenfield
e8d51a7c11 Automatically unlock tables after obtaining a read lock via the main menu. 2007-06-28 09:40:33 +00:00
rosenfield
a34d989ca1 Add a button which, when clicked, will change the SQL sentence terminator from ';' to '//'. Would have preferred a dropdown with ';', '//' and a user-editable field, but apparently I don't master the Delphi IDE on a high enough level to accomplish such a feat. Black belts to everyone who can make that work ;). 2007-06-28 02:17:57 +00:00
rosenfield
05c867ae60 * Get rid of access violations when executing a borked query asynchronously.
* Get rid of access violations when opening the user manager.
2007-06-28 02:10:44 +00:00
rosenfield
6a94364363 Automatically disable extended insert when exporting to ANSI SQL, enable otherwise (reduces clutter in output, saves space, increases performance.) 2007-06-28 00:37:04 +00:00
rosenfield
b5a700dc05 Slightly prettier extended insert output. 2007-06-28 00:22:59 +00:00
rosenfield
64f06cde50 Fix minor bug in example sql. 2007-06-28 00:19:18 +00:00
rosenfield
cbfa9b51ae Remove some ExplicitXXX properties. 2007-06-28 00:18:53 +00:00
rosenfield
cb4dbb3cf3 Remove 'always in edit mode' option because it supposedly breaks clipboard copy via CTRL-C if disabled. 2007-06-28 00:02:15 +00:00
rosenfield
f7d15e28b8 Changes:
* Get rid of ZQuery1 and ZQuery3.
 * Make GetResults et al into simple wrappers around joey_sf@users.sourceforge.net's asynchronous versions.

Fixes:
 * Fixes issue #1707146.

Remaining:
 * DataSet.Post() called in main thread by data and query grids.
 * DataSet.ExecSQL() + Open() called by Zeos internal functions.
 * TfrmInsertFilesProgress.ProcessFiles() hijacks connection and uses it from the main thread.
2007-06-27 23:50:13 +00:00
rosenfield
6b8818179a Remove some ExplicitXXX properties. 2007-06-27 23:32:29 +00:00
rosenfield
a4889d64d4 Fix the same IProviderSupport / deprecated problem that r647 fixed, but in a prettier way. 2007-06-27 21:31:52 +00:00
rosenfield
87806d7075 Reinstate TZAbstractDatabaseMetadata.AddResultSetToCache(), disabling it caused grid updates to fail. 2007-06-27 21:28:27 +00:00