Commit Graph

399 Commits

Author SHA1 Message Date
rosenfield
e31bbf685d Remove resource files from package directories. 2007-10-10 12:08:58 +00:00
rosenfield
0e5876a5b7 Move -N0 into %params%, it is shared anyway. 2007-10-10 12:03:20 +00:00
rosenfield
22daed7044 Move include files to include directory. 2007-10-10 11:46:27 +00:00
rosenfield
50f566cdd1 Automate build, allowing it to find the relevant compiler et cetera by itself. 2007-10-10 11:04:21 +00:00
rosenfield
9e160faa5a * Make sure that command processor extensions are enabled.
* Make sure that delayed environment variable expansion is enabled.
* Make %svndir% more suitable for cleaning via %CD%.
* Use CHDIR a\b\c before svnversion since it's a Unix tool.
* Use FOR instead of EnvPipe (delete EnvPipe executable too).
* Support keyboard input of both quoted and unquoted Delphi bin dir.
2007-10-10 08:18:33 +00:00
rosenfield
b55ff34f10 Recompile. 2007-10-10 06:46:01 +00:00
rosenfield
c783b2e6c2 Print readable error messages when something goes wrong. 2007-10-10 06:45:36 +00:00
Ansgar Becker
98dfb68ce8 Check both %ProgramFiles% and %ProgramFiles(x86)% for existance of Subversion dir to be sure to get the correct directory also in win64. 2007-10-09 18:51:41 +00:00
rosenfield
38dc35a19c Add start and finish time to build log. 2007-10-09 17:51:51 +00:00
rosenfield
faef258246 Add helpful hints. 2007-10-09 17:47:42 +00:00
rosenfield
7cf008540d Clean all binaries. 2007-10-09 17:40:55 +00:00
rosenfield
0ac46f7653 Fix some more path issues, now that it works enough to be testable! 2007-10-09 17:38:30 +00:00
rosenfield
43ee31b563 Ask for appropriate paths if they have not been given nor set. 2007-10-09 17:34:34 +00:00
rosenfield
ea32099c2b * Make the build script work on Delphi 10.
* Make the developer readme easier to update.
* Do the weird LIBSUFFIX thing on Delphi 10 too (?).

Untested.
2007-10-09 17:26:21 +00:00
rosenfield
594e763baf WC versioning info is not critical, so just let the build script continue if something fails. Except for sed. 2007-10-09 17:17:49 +00:00
rosenfield
6da50e020e Stop on failure. 2007-10-09 16:59:38 +00:00
rosenfield
22bb85fc11 Fix broken path handling. 2007-10-09 16:58:13 +00:00
rosenfield
29b951b843 * Add svnversion + envpipe + sed as part of build process, as a quick fix to get WC revision numbers into main.pas. 2007-10-09 16:39:57 +00:00
rosenfield
80c3e4e3fa * Remove ToolTip32 stuff, ntdll can do the same in less lines of code.
* Add feature: cleanse the existing environment variable before applying the new one.
* Flatten the code a bit.
2007-10-09 16:37:51 +00:00
rosenfield
d7060e2da4 Add a copy of GNU sed to the repository. 2007-10-09 13:25:11 +00:00
rosenfield
b03d562796 Another minor fix for the search algo, avoiding adding an extra byte after finding the correct value.. 2007-10-09 10:41:35 +00:00
rosenfield
14729aa3d7 Bugfix the binary search algo. 2007-10-09 10:33:07 +00:00
rosenfield
63a59ff170 If you've been wondering about the most wrong way to set an environment variable (ever), here's a definite candidate ;-). 2007-10-09 04:26:40 +00:00
Ansgar Becker
8002d0bd46 Minor GUI fix: Scroll and repaint SQL Log AFTER adjusting line numbers. 2007-10-08 22:07:21 +00:00
rosenfield
4232f36909 * Remove spam.
* Improve performance by not painting the progress form if a query completes within 300 msecs.
2007-10-08 21:52:59 +00:00
rosenfield
74074fe633 Bugfix: There is no thread safety mechanism in Zeos for the SQL log, so implement one in HeidiSQL. This should speed up async queries tremendously, as they no longer have to wait for the GUI to repaint before firing the actual query. Haven't bothered thinking about thread safety around the creation of the critical section protecting the TStringList, mainly because I'm infinitely annoyed by Delphi not providing a thread-safe list capable of holding lists OOTB.. 2007-10-08 21:29:16 +00:00
rosenfield
1581c55cea Pipe calls to InternalRefresh through the query thread. 2007-10-08 17:16:38 +00:00
rosenfield
3c5d236555 Bugfix: Don't try to access element -1 of a collection.
Please enable DEBUGGING in your builds so you can catch these sort of things before release time.
2007-10-08 16:56:43 +00:00
rosenfield
35c422ce1b Follow-up to r992: One last place where MaxRows is set to 0. 2007-10-08 16:42:32 +00:00
Ansgar Becker
fce4a738f8 Fix minor bug: LogSQL always containted one more line than the value in the preferences screen said. Fix that by moving the code for deleting the first line to after adding the new one. 2007-10-07 20:18:43 +00:00
Ansgar Becker
970272ad65 Give popupSQLLog 2 new items:
- "Log to file" (checkable, (de)activates file logging)
- "Open log folder" (opens the folder with logfiles)
2007-10-07 19:48:37 +00:00
Ansgar Becker
f9be3e3a83 - Revert rev 950, re-adding SynMemoSQLLog.Gutter = visible.
- Show line numbers as they can be quite useful
- Increase starting number when the first line gets deleted from the log, so the line numbers don't lie about the real number of loglines.
2007-10-06 18:16:08 +00:00
Ansgar Becker
5831c331a4 Add option to set SynMemoQuery.ActiveLineColor . By default, this color is set to clWindow (same as the memo itself has). Reverts rev 949 where ActiveLineColor was hardcoded. 2007-10-06 11:58:14 +00:00
Ansgar Becker
531a32e69a Refresh active DB's tablelist in dbtree after renaming a table from within ListTables. 2007-10-06 06:01:55 +00:00
rosenfield
4286244eda Add meaningful messages to the SQL log when a delimiter is selected or declined. 2007-10-06 00:08:19 +00:00
Ansgar Becker
55ef55d546 Enable displaying tooltips for shortened celltext in VirtualTrees like the old TListView did by default. 2007-10-05 23:41:25 +00:00
rosenfield
db55bbcbe3 Code optimization: avoid a Length() call and a comparison in scanReverse(). 2007-10-05 23:08:19 +00:00
rosenfield
4c4c1aabfe Add an extra guard. 2007-10-05 22:26:55 +00:00
rosenfield
e3fb1070d9 Code optimization: remove a superfluous bit compare.
(Guess I'll be the one buying beer ;-).)
2007-10-05 22:11:09 +00:00
Ansgar Becker
cae34f1a6c Write date + time to logfiles to enable more debugging on the users side. 2007-10-05 22:04:08 +00:00
Ansgar Becker
c4665784c2 - Give SynMemoFilter his own popupFilter instead of using popupQuery twice. Fixes broken F9 shortcut from rev 975 in both SynMemoQuery and SynMemoFilter after switching between them.
- Rename toolbutton and menuitem "Set filter" to "Apply filter"
2007-10-05 21:54:30 +00:00
rosenfield
213d145f3a * Add code comments.
* Add helpful (hopefully) delimiter syntax checking.
* Protect the backslash-in-string-literal parsing a bit more by only activating it inside string literals.  Also move it towards the string literal handler to improve readability.
* Fix regression: choose characters for secchar and thdchar that are really unused by the parser logic.
2007-10-05 20:17:11 +00:00
rosenfield
a3e18dc1dc Bugfix: one occasion assumed a delimiter length of 1, leading to superfluous character in resulting sql sentence. 2007-10-05 19:16:40 +00:00
rosenfield
d33be19be0 Nuke ExpectResultSet. Opted not to disable the mysql driver exceptions in zeos, instead used Anse's TZConnection.GetAffectedRowsFromLastPost().
(Messing with the internals here, please test...)
2007-10-05 18:52:38 +00:00
rosenfield
0f7015bf61 * Allow calls to TZMySQLResultSet.Next() to succeed in the case of queries without result data. The FQueryHandle retrieved from libmysql is null in these cases, so it seemed appropriate that the driver also returned null for FetchRow() when given such a handle. That seems to be what TZMySQLResultSet.Next() checks for, too.
* Allow TZMySQLResultSet.Open() to succeed in the event of a query which yields no results.

With these last fixes in place, you can experiment with removing the two exceptions that the zeos mysql driver itself throws when asked to run eg Open() but no results are returned.
2007-10-05 18:36:05 +00:00
rosenfield
ea89447fa6 Avoid an access violation within a for loop which got run once even when there were 0 columns in a result. 2007-10-05 18:03:11 +00:00
rosenfield
ee353d15cc * Checking for MaxRows (guess: max rows to load) != 0 before checking whether the requested row is out of range seems unreasonable, since asking for a maximum of 0 rows is not uncommon. Change the default value to -1, and change the checks to look for -1, allowing for MaxRows := 0.
* There seems to be disagreement between drivers on whether to check for Row > MaxRows or Row >= MaxRows.  Guessing that it's a typo, change to the most common variant (Row >= MaxRows, meaning that the row numbers given to MoveAbsolute, MoveRelative, Next, Fetch etc are 0-based).
2007-10-05 17:59:32 +00:00
rosenfield
fccb838455 Bugfix: Handle errors which happen during "async" query execution. 2007-10-05 13:03:24 +00:00
rosenfield
d616f1bdce Fix various regressions:
* When shortcutting and snipping whitespace early, the start pointer must be adjusted whenever a comment "whitespace" is accounted for.
 * When handling end-of-string inside loop, shortcutting via continue must not be performed if at the last character of the string, otherwise an entire sentence might be skipped.
 * Processing sentence contents must happen after processing comments (as before the delimiter changes).
 * Trying to handle the conditional markers with a state variable inside the end-of-sentence block did not work, sometimes too much sql got included in the conditional.
2007-10-05 12:49:59 +00:00
Ansgar Becker
f0db5d8497 Fix queries like /*!40000 SHOW ENGINES */ to be recognized as "result"-queries while not breaking getFirstWord calls in situations where the second or later char can be a number (fx the collation in createdatabase). 2007-10-04 20:31:31 +00:00