8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 05:23:02 +01:00
Commit Graph

668 Commits

Author SHA1 Message Date
robocop
a958da87f5 Style. 2009-06-21 05:46:51 +00:00
aafemt
89e77c3e07 Fix parsing of constructions like /*/ and /**/* 2009-06-19 11:17:07 +00:00
asfernandes
bdb85455af Put apples and oranges in different baskets 2009-06-19 02:03:57 +00:00
robocop
83a1e271d7 Use our common code to deal with NaN and Infinity. 2009-06-17 12:22:27 +00:00
robocop
1faf0f05ba Fix CORE-2370: SQL Plan greater than 2048 characters is not printed at all in ISQL.
This is the client side fix. Server-side fixes will follow.
We should be careful to not upset FB2.1 and before.
2009-06-14 12:28:41 +00:00
robocop
7e7f889768 After asking Alex, he confirms that calling fb_shutdown_callback in isql is for everything except WIN_NT (make code equivalent to previous versions). 2009-06-09 09:48:20 +00:00
robocop
d69d80f56d Improvement CORE-1171: make floating point's exponential format the same across platforms. 2009-06-09 09:44:28 +00:00
robocop
a1c6c037d8 Misc. 2009-06-09 09:02:31 +00:00
robocop
5e1d8f9b78 Misc. 2009-06-07 10:17:28 +00:00
asfernandes
486962d8c1 Put TempFile in Firebird namespace 2009-06-06 18:39:29 +00:00
robocop
51d3c9b756 Let's use more typical #ifdef to test macros instead o #if. 2009-05-29 11:27:41 +00:00
asfernandes
38a2912669 Misc 2009-05-03 21:57:13 +00:00
robocop
65c9cb6b1e Use named constants to represent field lengths. In the future it will have to be split between logical length (characters) and physical fields (bytes, for the internal buffers). 2009-05-03 14:08:39 +00:00
robocop
e5b226f7a7 More unused params; style. 2009-05-02 13:00:09 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
alexpeshkoff
8c983fec26 Fixed alignment issues with on-stack vary strings 2009-04-29 14:00:32 +00:00
asfernandes
1c20adb8fc Misc 2009-04-29 01:52:49 +00:00
robocop
92eee0fac3 Solve the display problem in Windows where
select cot(0) + 1 from rdb$database;
produces 1.#INF00000000000
Now it says Infinity but only Windows and Solaris are covered.
2009-04-28 17:15:00 +00:00
robocop
441560c29a Misc and style. 2009-04-28 14:16:35 +00:00
robocop
896a849e7e Misc. 2009-04-28 13:11:23 +00:00
asfernandes
debd9eb20d Fixed CORE-2407 - isql -ex PAGE_SIZE missing in CREATE DATABASE 2009-04-08 16:06:20 +00:00
asfernandes
8c458e45d7 Fixed CORE-2408 - isql -ex puts default values of sp parameters before the NOT NULL and COLLATE flags 2009-04-08 15:43:06 +00:00
asfernandes
283509ad8d Misc 2009-03-01 15:42:23 +00:00
robocop
49f23ff20c Little cleanup. 2009-02-28 12:34:48 +00:00
robocop
096d8e78e6 Trying to be more consistent in the detection of headers (HAVE_* macros). 2009-02-08 11:38:00 +00:00
asfernandes
891845836d CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions 2009-02-05 14:29:28 +00:00
asfernandes
ced3b0010e Rollback CORE-2298 2009-01-29 20:36:29 +00:00
asfernandes
9784181a33 Improvement CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions 2009-01-28 21:37:45 +00:00
asfernandes
f532f6975e Misc 2009-01-21 15:42:45 +00:00
robocop
e5f2fd24c1 Style. 2009-01-21 04:02:59 +00:00
robocop
3a03e0515c Style: aligning the opening and ending braces in switch() statements and in large blocks of code. 2009-01-18 11:36:08 +00:00
alexpeshkoff
662434dcbe fixed gcc warning 2009-01-13 15:56:17 +00:00
alexpeshkoff
7757c6b8cb Solaris port 2009-01-04 17:46:16 +00:00
asfernandes
a177d28d60 Misc 2008-12-31 20:22:10 +00:00
robocop
7aa0ac1cd4 Shut up compiler warnings (unreferenced vars, uninitialized vars, etc). 2008-12-31 09:36:57 +00:00
robocop
d11c994960 Style. 2008-12-31 05:06:08 +00:00
alexpeshkoff
755f52124b Solaris port 2008-12-30 17:58:30 +00:00
robocop
e9be920cc0 Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us). 2008-12-30 10:52:52 +00:00
asfernandes
582d837778 Remove trailing spaces from epp files - I had forgot them 2008-12-20 23:50:22 +00:00
asfernandes
5311dd5a5e Misc 2008-12-20 19:57:43 +00:00
asfernandes
aa1cfb66f2 Correction 2008-12-20 15:17:43 +00:00
robocop
95292d1731 Style. 2008-12-20 08:12:19 +00:00
skywalker
6b3dd235f1 Added isql command SET ROWCOUNT <n> it is a local isql command that
limits the number of rows returned in processing.  It is a feature
of a number of other databases, but in our case its main use is for
convenience for running the TPC-X tests,
2008-12-18 22:19:32 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
alexpeshkoff
1c2ab35c8c CORE-1667 - fixed message text 2008-12-01 15:46:31 +00:00
asfernandes
a5ff7ca091 Misc 2008-12-01 01:26:27 +00:00
alexpeshkoff
9431183e42 Implemented CORE-1667: Reading password from file/stdin 2008-11-30 17:11:56 +00:00
hvlad
b37e24cf14 Added phase of preliminary confirmation for fb_shutdown process 2008-11-25 10:16:53 +00:00
paulbeach
0e926ab154 Modifications to enable a build on Darwin 2008-10-22 13:15:00 +00:00
asfernandes
d30d6410ea Misc 2008-06-13 01:42:58 +00:00
alexpeshkoff
cdbe8183ee Fixed grants display - thanks to Claudio 2008-06-11 12:41:36 +00:00
robocop
46df47034c Misc. 2008-06-10 12:28:26 +00:00
alexpeshkoff
5f0278b14e Added GRANTED BY clause to GRANT and REVOKE commands.
Fixed CORE-1869: Roles granting/revoking logic differs between 2.0 and 2.1.
2008-06-10 10:55:48 +00:00
alexpeshkoff
a5733f3873 Avoid extra newline when no charsets are defined 2008-06-05 07:14:54 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
asfernandes
c9202a3767 Misc 2008-05-18 02:02:50 +00:00
alexpeshkoff
86cd8cb6b3 1. Added parameter 'shutdown reason' to fb_shutdown() API call. It's passed to shutdown
callback function, and helps to take correct action in it. This fixes CORE-1827: Win32
Embedded Server should pass control to application before calling exit(3).
2. Removed unneeded any more flag in isql and qli, used earlier to distinguish between
kinds of shutdown.
2008-05-16 11:31:57 +00:00
robocop
1cdd4e4126 Clean the sources from VC6 hacks. 2008-05-14 05:17:53 +00:00
asfernandes
ee7a3f5930 Misc 2008-05-13 01:29:38 +00:00
alexpeshkoff
6c93cc3086 Disable ctrl-C processing when running internal SQL statements (API calls) and cleanup 2008-05-12 13:37:30 +00:00
asfernandes
a8cf0131c0 Fixed CORE-1891 - SHOW VIEW shows non-sense information for view fields with expressions 2008-05-09 17:35:38 +00:00
dimitr
9071049788 Let's avoid crashing when no information is returned in the ouput buffer. 2008-04-30 17:48:50 +00:00
alexpeshkoff
0ba2ab7ea7 Make fb_cancel_operation() public API call. Related cleanup. 2008-04-29 09:55:41 +00:00
robocop
d3e036d7b9 Fix CORE-1862. 2008-04-24 10:50:22 +00:00
alexpeshkoff
f9a4fc9dd8 No use copying when src==dest (make valgrind happy) 2008-04-17 10:57:30 +00:00
asfernandes
53f24220f6 Support for default collations in ISQL - SHOW DATABASE and metadata extraction 2008-04-15 15:55:51 +00:00
robocop
e1da13440d Do not crash on -pag 0
Instead, interpret it as SET HEADING OFF
2008-03-28 13:31:12 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
robocop
d293e5f0d1 Misc. 2008-03-13 11:02:56 +00:00
dimitr
62b48b3bd3 Fixed my own bug. Thanks to Claudio. 2008-03-12 11:02:43 +00:00
dimitr
29694be08d Change the ISQL output to show SQLSTATE instead of SQLCODE. 2008-03-12 10:18:02 +00:00
dimitr
836ea2c649 Ooops. Fixed my own mistake. 2008-03-11 12:25:15 +00:00
dimitr
570bc2a748 Fixed CORE-1782. 2008-03-11 12:24:01 +00:00
robocop
c6d8b0f46f Style. 2008-03-05 08:39:26 +00:00
alexpeshkoff
7dacbbbd74 Make fb_disconnect_transaction, fb_shutdown and fb_shutdown_callback public API calls.
Related cleanup.
2008-03-03 17:47:09 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
robocop
4cbc8d6a2f Misc. 2008-02-21 13:11:32 +00:00
dimitr
87ef685b67 Fixed CORE-1749. 2008-02-20 10:42:46 +00:00
dimitr
e6c3d9e0de Fixed crash in ISQL at cleanup time. 2008-02-13 11:53:41 +00:00
alexpeshkoff
02c9c058be Better fixes for isql problems, thanks to Claudio 2008-01-25 16:48:16 +00:00
alexpeshkoff
80159ff3c5 Fixed assertion in TCS:C_SQL_JOIN_46 2008-01-25 11:28:50 +00:00
alexpeshkoff
43ac380b43 Do not extract system roles 2008-01-25 09:53:17 +00:00
dimitr
59096b3a13 The merge continued. 2008-01-16 07:23:29 +00:00
asfernandes
61a614c878 Misc 2007-10-06 19:08:50 +00:00
robocop
f4c34be345 Fix CORE-1496.
In addition, the SHOW command shouldn't mangle object names when requested to display grant-related information (show grants).
2007-10-05 10:25:11 +00:00
robocop
83192cd8c9 Presenting the SHOW USERS command in society (documenting it when user types HELP or ?)
:-)
2007-10-04 09:29:04 +00:00
robocop
78e090ec4a Still trying to adjust isql to fix CORE-1261 completely: now it needs to understand that
RDB$PRIMARY<n> are implicit index names and shouldn't be part of a script.
2007-10-04 09:20:04 +00:00
robocop
16b18a9378 Fix CORE-1493. 2007-10-04 09:15:01 +00:00
alexpeshkoff
eb3f6f59df Fixed CORE-1485: AV when loading messages in msg.fdb 2007-09-28 11:31:46 +00:00
asfernandes
96a6ad5863 Misc 2007-09-19 01:46:45 +00:00
robocop
b495af9497 Adjust the SHOW command for CORE-1261
Here, we don't need to follow the syntax as it's only informative.
2007-09-18 06:01:07 +00:00
robocop
b261c3dd72 Change for fix in CORE-1261: the index name can't be omitted in our current syntax if the USING clause appears. Example:
CREATE TABLE T (A INTEGER,
CONSTRAINT Z UNIQUE (A) USING DESCENDING INDEX Z);

(The constraint and the index use the same name, but the descending clause forces the using clause and then the index name is mandatory.)
2007-09-18 06:00:18 +00:00
asfernandes
a8355d8e8f Misc 2007-09-16 16:15:19 +00:00
robocop
eb51d83899 Fix CORE-1261
First part: change extract.epp that's for scripts
The counterpart in show.epp (not critical) will be updated later.
2007-09-16 11:16:29 +00:00
robocop
344559bc7b Post undocumented SHOW USERS command for testing, with permission from Dmitry. 2007-09-16 09:05:21 +00:00
robocop
e256254154 Fix CORE-1465 2007-09-16 09:02:53 +00:00
asfernandes
4dd7b4c668 Misc 2007-09-12 02:31:28 +00:00
robocop
5fcb8dffdc Enhancements in isql in debug mode to test for CORE-1447. 2007-09-11 09:20:57 +00:00
asfernandes
26c6b4f549 Fixed CORE-1408 - UDF names using reserved words are extracted without double quotes 2007-08-08 01:46:11 +00:00
asfernandes
379ebc9ab6 Misc 2007-07-01 02:40:15 +00:00
asfernandes
a0ec42d087 Correction 2007-06-28 15:30:10 +00:00
asfernandes
410b2809a1 Fixed CORE-1332 - Put the connection charset in sqlscale of blobs when appropriate 2007-06-28 15:27:28 +00:00
alexpeshkoff
458351cace Fixed display of warnings in DDL statements 2007-04-28 13:57:42 +00:00
alexpeshkoff
8274d3213d Fixed CORE-867 - all utilities now hide password from "ps" as soon as possible 2007-04-25 14:10:47 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
robocop
4391bbdcd4 Tweaks to UserBlob to support backup/restore. 2007-04-04 08:46:31 +00:00
dimitr
809c1c727c Correction. 2007-03-31 12:49:49 +00:00
mkubecek
30091104f6 fixed new[]() vs. delete[]() collision in GCC4 build 2007-03-31 12:14:24 +00:00
robocop
33959bebf3 Handle blob in user side with a class and optimize blob handling for bulk insertion in isql. 2007-03-28 07:14:18 +00:00
robocop
e71a03261c This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash. 2007-03-28 04:20:36 +00:00
robocop
789edc74d5 Corrections. 2007-03-01 11:40:26 +00:00
asfernandes
cd56397a51 Misc 2007-02-25 21:25:33 +00:00
asfernandes
dc5eabedce Minimize usage of DDL transaction when AUTO_DDL is false:
- it easy makes database with transaction triggers unusable because the read_commited no_rec_version of DDL transaction.
2007-02-25 14:28:14 +00:00
robocop
f83b2c407d Commit undocumented, primitive facility to deal with prepared statements and feed data to them. I need it to play with the messages.sql file.
Did other misc changes.
2007-02-25 12:03:18 +00:00
robocop
374bab0387 Misc. 2007-02-06 09:51:38 +00:00
robocop
b106f0bffc Adriano found a case where I didn't check for a premature, unexpected null terminator.
I found another case, too.
2006-12-31 09:19:46 +00:00
robocop
d695023827 Did the wrong commit for CORE-932. Sorry. 2006-12-29 10:05:52 +00:00
robocop
05d3ea8086 Trying to fix CORE-932.
Helen's pet bug.
create database /* */ /*  */ <newline> /**/ -- <newline> <db_name>
show database should tell you <db_name> instead of the first irrelevant crap after the DATABASE keyword.
2006-12-29 08:52:12 +00:00
robocop
fa14062473 Fix CORE-1002 2006-12-28 06:11:28 +00:00
asfernandes
bdc929a0bd Fixed again (now for MSVCExpress) the problem with international characters crashing ISQL 2006-12-09 00:19:10 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
alexpeshkoff
fc6c274dcb Misc 2006-11-30 14:46:26 +00:00
asfernandes
d168869475 Added RDB$NULL_FLAG and RDB$PARAMETER_MECHANISM to RDB$PROCEDURE_PARAMETERS 2006-11-24 00:25:13 +00:00
asfernandes
0939d86a57 Some suggestions from Claudio 2006-11-11 00:52:31 +00:00
asfernandes
570b6cd4b4 1) CORE-645 and CORE-745: Database triggers
2) CORE-711: Make syntax for "CREATE TRIGGER" compliant with SQL2003
2006-11-05 18:30:36 +00:00
asfernandes
1b1830adb9 Misc 2006-09-17 02:31:45 +00:00
mkubecek
c05e35bfd5 use fb_utils::stricmp() to fix POSIX builds 2006-09-16 13:12:44 +00:00
asfernandes
fe2367d643 Misc 2006-09-08 21:13:30 +00:00
robocop
59f4ba9363 Explain why server version cannot be retrieved. 2006-09-08 07:26:24 +00:00
robocop
7e94e15d6f Implement SHOW SECCLASS command, mostly for core developers' needs. 2006-09-08 05:07:37 +00:00
robocop
0acf16eef8 Misc. 2006-09-07 07:56:25 +00:00
asfernandes
7b4c1c02d5 Display changes suggested by Claudio 2006-09-03 19:27:45 +00:00
asfernandes
8e08d2c25c Extend SHOW SYSTEM to accept parameters TABLES, FUNCTIONS and COLLATIONS 2006-08-31 16:52:48 +00:00
robocop
56d19d8f53 Centralize detection of those pesky implicit domains.
There may be more cases that can use the new function.
2006-08-31 08:01:24 +00:00
asfernandes
e808d69001 Correction - thanks to Claudio 2006-08-29 15:39:00 +00:00
asfernandes
18b57e55b5 Misc 2006-08-27 02:48:51 +00:00
asfernandes
ccdbe63a63 Corrections - thanks to Claudio 2006-08-26 15:46:09 +00:00
asfernandes
6ca9286373 Display system collations in isql SHOW COLLATIONS 2006-08-22 02:27:07 +00:00
asfernandes
b7af27215e Allow usage of domains in PSQL (with TYPE OF syntax) 2006-08-19 02:52:39 +00:00
asfernandes
0d408405f8 Misc 2006-08-12 16:30:07 +00:00
asfernandes
565f994229 Get the blob charset of XSQLVAR only when relname is empty - thanks to Claudio 2006-08-11 12:31:21 +00:00
asfernandes
d3a7d1b21b Put blob charset in XSQLVAR::sqlscale 2006-08-08 11:23:47 +00:00
asfernandes
6c707c12a1 Misc 2006-08-08 02:42:10 +00:00
asfernandes
e538061c38 Implementation of CREATE/DROP COLLATION and ISQL show/extraction of collations 2006-08-07 16:39:21 +00:00
asfernandes
6d2555a82b Fix problem of not-nullable blobs being not printed 2006-08-02 12:50:23 +00:00
asfernandes
ccbaf55533 Misc 2006-07-28 01:44:36 +00:00
robocop
6e20b6506d Misc: announce system functions only when we find them. 2006-07-27 09:28:28 +00:00
dimitr
6b6ba903e4 Forward declaration of enums is not allowed in the C++ language, even although being supported by MSVC.
This commit should fix GCC compilation problems.
2006-07-21 07:53:18 +00:00
dimitr
a09dc97d6b Corrections, thanks to Claudio. 2006-07-20 06:19:25 +00:00
asfernandes
f2c8abb2e7 Correction 2006-07-18 16:01:59 +00:00
dimitr
e7daad878b Cleanup of some older remainings... 2006-07-18 10:18:41 +00:00
asfernandes
cbe9acb76b Misc 2006-07-16 20:38:17 +00:00
robocop
4ca73444e5 - Fix message requesting a unique index to request a UK or PK constraint to be able to create a FK: indexes manually created aren't honored.
- Commit (without external or self documentation) a debugging features in isql to show dependencies with cryptic. not suite for end users output:
SHOW DEPENendenc[y | ies] obj_name
2006-07-14 06:57:19 +00:00
robocop
acd1d6dcbc Expand Michal Kubecek's idea to the SHOW command so the object types have more flexibility in their abbreviations. Example: SHOW EXCEP[TIONS] will do with every correct abbrev between 5 and 10 characters. 2006-07-11 07:13:46 +00:00
asfernandes
34a6dd6b9f Correction 2006-07-01 22:48:42 +00:00
asfernandes
2dc17eeb5e Misc 2006-07-01 02:21:22 +00:00
mkubecek
6c67b600ca use TempFile to create temporary files 2006-06-30 19:09:24 +00:00
mkubecek
23ce7eda59 fixed check of fopen() failure 2006-06-30 15:45:03 +00:00
asfernandes
4919fc38c1 Small correction thanks to Claudio 2006-06-28 18:33:31 +00:00
asfernandes
ad4113e863 Implementation of feature-request (CORE-704) Ctrl+C to cancel queries - thanks to Michal Kubecek 2006-06-26 18:24:07 +00:00
mkubecek
a4221daa38 missing Firebird::PathName to C string conversion 2006-06-25 13:21:56 +00:00
asfernandes
b944e7bdc6 Correction 2006-06-15 22:34:49 +00:00
robocop
0914c3a9dd People using other compilers shouldn't be bothered with workarounds for one compiler, while possible. We already have workarounds for gcc, SunOS4 headers, HP/UX compiler, SCO compiler, Apollo compiler... why adding more for everyone? 2006-06-15 04:56:24 +00:00
asfernandes
6704275f76 Make compilable in MSVC6 2006-06-06 15:42:50 +00:00
alexpeshkoff
ded5cc2c49 cleanup 2006-06-06 10:34:32 +00:00
dimitr
8d1c1ed8c4 Dropped SMALL_FILE_NAMES related constants. 2006-06-02 04:23:41 +00:00
dimitr
3937771826 More complete fix. 2006-06-01 05:56:55 +00:00
dimitr
96b99def48 Fixed issues reported by Michal. 2006-06-01 05:12:38 +00:00
dimitr
7cc12e8489 1) Reworked memory management in SORT. Now we're pools aware there.
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
robocop
ebe0a75026 Simplification. 2006-05-04 00:02:58 +00:00
aafemt
46c3ee5090 Fix for my previous commit. Thanks to Adriano 2006-04-28 04:12:09 +00:00
aafemt
f5838a4262 Not elegant fix for treating too big statements as an error 2006-04-27 10:57:11 +00:00
robocop
4505c223f0 Correction. 2006-04-11 08:21:23 +00:00
robocop
62ae60c818 Adriano reported a problem with SHOW GENERATORS skipping the required object because an old db had NULL in the sysflag column. Using his proposed fix, committed only to the HEAD. 2006-04-11 07:30:58 +00:00
robocop
a90a72232c Adjust isql to the full words stated in the IB5 docs for the command line options. 2006-04-08 00:03:50 +00:00
alexpeshkoff
543932292f fixed regression in switch 2006-04-06 14:43:01 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
mkubecek
4a94466a5a Fix of isql command line parser: check for repeated switches or database name. 2006-03-28 04:31:35 +00:00
robocop
2484232f23 - Misc.
- Style
- Avoiding one indentation level.
2006-03-26 05:58:29 +00:00
asfernandes
3329d9fc07 Correction 2006-03-26 03:34:14 +00:00
mkubecek
332dce9203 Fix of isql command line parser: allow only abbreviations of standard switch names, check integer arguments to be integers. 2006-03-25 23:41:36 +00:00
robocop
6bd28bca87 Misc. 2006-03-25 07:01:34 +00:00
robocop
3ed50872b2 Give isql a more useful help when receiving incorrect command line arguments, in sync with other utilities. Courtesy of Michal Kubecek.
Example: isql -?
2006-03-16 09:07:37 +00:00
robocop
c5c56a0043 Fix misleading error message reported by Michal Kubecek. 2006-02-24 09:21:16 +00:00
hvlad
73dcebc962 Replace "../jrd/jrd_time.h" with "../common/classes/timestamp.h" 2006-02-03 13:13:27 +00:00
alexpeshkoff
d1ee840d60 fixed gcc warning(s) 2006-01-16 16:49:15 +00:00
robocop
1ca7a582f9 EXPRESSION_INDICES code is considered stable and therefore there's no need to keep it protected by macros. Please do a full rebuild. 2006-01-14 07:00:44 +00:00
alexpeshkoff
32ef4f5b67 fixed compilation after changes in exception 2006-01-07 16:58:23 +00:00
robocop
f902dd1311 Parse the server version output (that can be large with redirection) correctly when isql -z is used. 2005-12-30 06:57:06 +00:00
alexpeshkoff
9fa49f5077 make server-version output a bit more readable 2005-12-29 09:32:41 +00:00
alexpeshkoff
4447d705c8 fixed bugs in server version reporting 2005-12-29 08:06:11 +00:00
dimitr
0a19363d98 Fixed stack buffer overrun. 2005-12-27 09:42:40 +00:00
alexpeshkoff
2d259e3978 Fixed buffer overrun in case of bad data returned by isc_database_info() 2005-12-26 16:10:59 +00:00
robocop
39b9a7fb22 Avoid the intermediate buffer. 2005-12-03 07:01:16 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
robocop
c6a7afcb8a Fix for problems with triggers v/s checks (some triggers not extracted, other automatically generated triggers belonging to CHECK, view's CHECK OPTION and CASCADE being extracted). 2005-11-27 06:42:16 +00:00
robocop
e7fa075880 Let isql yell always, irregardless of the switches. 2005-11-08 23:57:23 +00:00
robocop
c6e7a41878 Fix display alignment problem with CHAR type and small binary fields. 2005-10-08 07:02:54 +00:00
robocop
4337f38101 Update isql accordingly to my previous Fix SF Bug #1292007
Move more hardcoded error strings to the msg database.
2005-10-06 07:02:04 +00:00
robocop
c974a600e3 SHOW command should also show procedure parameters defaults. 2005-09-30 08:43:03 +00:00
robocop
95ce9df850 Update isql to extract procedure parameters defaults in a script as a tribute to Vlad.
Note: Vlad is still alive.
2005-09-30 07:52:22 +00:00
robocop
9af8440596 Better check for isql ignoring implicit rdb$<number> domains. 2005-09-24 05:09:43 +00:00
robocop
d7f1979164 Fix premature EOF while reading a script file when using the SHELL command inside it, found by Paul Reeves. Trying to find a compromise between MS requirements for system() call and its bad side effects on our isql. 2005-09-03 05:54:27 +00:00
robocop
0285583c9f Fix display bug found by Adriano, caused by missing %s and try to make isql output more consistent. QA Tools that check for strict result may complain. 2005-07-08 04:10:27 +00:00
asfernandes
8fe0408bb3 Make SQLDA_DISPLAY display input SQLDA parameters of INSERTs, UPDATEs and DELETEs 2005-06-23 15:12:53 +00:00
robocop
2870acfc87 Fix blob dumping routines in jrd and report errors in isql. 2005-06-16 05:13:35 +00:00
robocop
545cb77032 If an error happens when we are trying to retrieve the first record, we need to print a newline or the error msg will appear padding the column headers. 2005-06-12 23:47:04 +00:00
robocop
f3593f8977 Cater for the longest possible identifiers, quoted. 2005-06-12 01:36:03 +00:00
robocop
c547304496 - Renamed function input to newinput to be in sync with newoutput.
- Implemented PASSTHROUGH command only for the debug build. Use with care.
2005-06-11 00:32:06 +00:00
robocop
56deb9afcd Mixed case generator names caused problems in show_generators.
Noticed by Adriano.
2005-06-06 08:32:55 +00:00
robocop
729238ae80 I didn't test a case, but I'm pretty sure that long quoted identifiers could lead to a buffer overrun while extracting grants here. 2005-05-26 08:26:05 +00:00
robocop
d677f7ba8b Fix SF Bug #1208932 reported by Ivan Prenosil an hour ago approx. 2005-05-26 07:35:45 +00:00
robocop
35dc1e343c - Cleanup.
- A bit better handling of SHOW EXCEPTION.
2005-05-26 06:45:25 +00:00
robocop
f6d654cf13 Lower the clutter. 2005-05-24 04:42:01 +00:00
robocop
e449e24d0b Escape single quotes in comment's text and double quotes in identifiers that have metadata comments not when we are doing SHOW COMMENT[S] but only when we are extracting a script, as Martijn suggested. 2005-05-20 08:34:19 +00:00
robocop
1ac3a5d9b7 - Implement the SHOW COMMENT(S) command.
- Integrate it into metadata extraction, too.
- A couple of minor improvements to isql.
See explanation in show_comments() function.
2005-05-19 08:03:10 +00:00
dimitr
00e8d18464 Implemented metadata extract for expression indices. 2005-05-18 15:53:41 +00:00
kkuznetsov
a066a949fb Renamed ERR to ps_ERR in the enum processing_state {...} to fix compile error on Solaris 2005-05-14 14:50:41 +00:00
robocop
df8b6d12e4 Apply Miroslav Penchev fix for ISQL_disconnect_database overwriting the Quiet flag permanently. 2005-05-12 07:00:54 +00:00
robocop
3c361f66ba Simplify array bounds printing for canonic case. 2005-05-12 05:32:25 +00:00
robocop
3fd1859bd1 Workaround for SF Bug #450404. (Isql can't guess what the user intended.) 2005-05-02 07:11:39 +00:00
robocop
3f68b85b89 Another fix for the -b (Bail On Error) option when SQL commands are issued and no db connection exists yet.
Apply Miroslav Penchev's patch for bug with -Q always returning 1 to the operating system, discovered by Ivan Prenosil.
2005-04-28 06:26:24 +00:00
robocop
b2010a42e4 Fix indentation. 2005-04-25 05:23:57 +00:00
robocop
26c5ac04b0 This is my first attempt in four years to fix the nonsense code I wrote for grants extraction in FB1. 2005-04-04 08:33:43 +00:00
robocop
3379bed424 Isql shouldn't try to connect twice when extracting metadata, since the second attempt may produce a confusing message (the db name has been made null at this time). 2005-04-04 08:31:11 +00:00
robocop
4fbf25e341 Fix chaotic output. 2005-04-03 06:58:40 +00:00
robocop
7acd0a6d39 - Temporary fix for Pavel's firebird-Field-test-1173948.
- Some little tweaks.
2005-04-02 07:07:07 +00:00
robocop
f800fd59a7 I find hard to work with functions that span 800 or more lines. Therefore, I modularized process_statement. I took the opportunity to get rid of some local variables and fix performance info printing. 2005-04-02 03:51:43 +00:00
robocop
c5c02ed2e9 1.- Replacing raw call to gds__msg_format by ISQL_msg_get; the routine was there for years and almost unused.
2.- UDFs are still created by sys_flag being NULL, so show_functions() should acknowledge that fact.
3.- Implement naive code to show an approximate script-related line number when a failure happens. (Unlike my private FB1's isql, it doesn't rely on strings subject to localization.)
4.- With SET PLANONLY ON, PLAN was activated, but with SET PLAN OFF, PLANONLY wasn't deactivated.
5.- Include isc_info_sql_stmt_get_segment among statements that are like SELECT.
6.- Solve a bad interaction between PLANONLY and SQLDA_DISPLAY, where the first being activated didn't allow to see the output XSQLDA.
7.- More error detection.
2005-03-31 07:50:32 +00:00
robocop
5672f269e0 More WAL deletion. 2005-03-26 05:50:16 +00:00
robocop
29690221e1 1.- Some small buffers with predefined lengths don't need to be allocated dynamically.
2.- ISQL_get_index_segments shouldn't overflow in extreme cases. Better print an indication that the extraction wasn't completed (ellipsis).
3.- Fix bug with EXTRACT_list table that was printing ); if it didn't find the required table. This in turn caused bugs in other functions.
4.- STDERROUT is used in all places with second argument set to true. Simplify it.
5.- Delete the code previously commented for WAL.
6.- Fix add_row and copy_table. These features were requested to be made available in release mode at v1 time by Paul Beach. They should now be able to cope with quoted identifiers, too.
7.- Complement usage of readNextInputLine when called directly to avoid reading garbage or causing memory errors.
8.- Fix several strings that should have been declared with MAXPATHLEN since the first moment.
9.- Misc bug fixes and B.O. closed.
2005-03-26 05:33:55 +00:00
aafemt
ad88d1e805 Fix for Field-test item #1168910 2005-03-23 10:10:38 +00:00
skidder
56186e7f4d Calling clear_history like that breaks the builds. But even when build is fixed, call like that causes SIGSEGV due to editline history not being initalized when ISQL is used in non-interactive mode. Since clear_history doesn't free all the editline memory there is no big point in using it here anyways... 2005-03-09 06:53:03 +00:00
robocop
39c62a936d Totally misc. 2005-03-04 09:21:12 +00:00
robocop
ea866740f1 1.- Stop possible crash with long terminators. Pending other checks for the future.
2.- Complete Damyan Ivanov's patch to allow BAIL detect really most error conditions.
3.- Create two functions to handle part of the bulky processing of isql's built-in commands.
4.- Make SET SQLDA_DISPLAY work in release versions and derive functionality to two new functions.
5.- Change Borland's moronic usage of a FIFO implemented in a linked list to handle the needs of a LIFO, simplying code and avoiding the associated logic pain.
6.- Avoid several SQL> prompts when using the INPUT command interactively.
7.- Free several resources on exit. Stop some additional memory leaks.
8.- Signal we are processing the INPUT command only when the file can be opened.
9.- Put the cursor declaration inside the code protected for scrollable cursors, in case it's needed there, since isql doesn't do positioned updates.

Remember to report random behavior, crashes, segmentation faults, core dumps and BSOD's.
2005-03-04 09:17:34 +00:00
robocop
4be87294fa sqldaid and sqldabc are unused crap borrowed from IBM 15 years ago.
Don't show them as they contain garbage.
2005-02-07 09:00:33 +00:00
aafemt
d455bd79e4 LF already have been killed in readNextInputLine() 2005-01-26 10:37:53 +00:00
robocop
1361f698e1 Show system UDF's. According to Ann, she seems to remember that
"there hasn't been a missing RDB$SYSTEM_FLAG since V2 except
objects created with direct system table inserts."
but if there are problems, I will have to do two loops.
2005-01-04 05:42:26 +00:00
robocop
4012106884 Misc. 2004-12-25 09:44:03 +00:00
robocop
d65307b497 Style. 2004-12-24 08:52:39 +00:00
aafemt
1bb898274b Fix extra EOLN in interactive mode without editline 2004-12-23 10:15:49 +00:00
robocop
ba7f94f470 Misc. 2004-12-17 05:57:04 +00:00
aafemt
59f854c331 Fix for AV on EOF in interactive mode 2004-12-16 12:45:30 +00:00
aafemt
52aaaacfad Parser must parse, not input routine 2004-12-16 10:23:58 +00:00
aafemt
491cfb9abd Redundant comment 2004-12-16 10:13:51 +00:00
robocop
bd491bec02 Restore output if copy_table fails. 2004-12-12 02:01:52 +00:00
alexpeshkoff
387e678cca applied Clumplet* classes to dpb where possible 2004-12-09 19:19:47 +00:00
robocop
0dd1aced53 Misc. 2004-12-09 02:50:47 +00:00
skidder
aa80ac9481 Fix POSIX build after Claudio cleanup 2004-12-09 01:53:31 +00:00
robocop
001c8257a2 1.- Get rid of the std::string from the STL.
2.- Add a couple of missing deallocations.
2004-12-07 00:38:03 +00:00
robocop
308bdd3de1 Misc. 2004-12-07 00:33:16 +00:00
robocop
467277c241 Misc and solve a couple of missing deallocations. 2004-12-04 08:30:43 +00:00
robocop
9834b16376 Close the blob before returning an error. 2004-12-03 07:23:22 +00:00
robocop
7f0624da56 Misc. 2004-12-03 07:22:49 +00:00
robocop
4076ff0a11 First attempt to fix the double charset reporting bug that our dear Blas left in isql more than half a year ago. 2004-12-01 08:25:25 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
robocop
71989bd496 Don't show system functions. 2004-11-30 06:08:56 +00:00
skidder
51a992b959 Do not include system functions in database metadata script generated by ISQL 2004-11-30 03:22:50 +00:00
robocop
f8569104d6 Apply Adriano change with the following explanation:
Fix a bug that occur when a BLOB column is added after the start of the DML transaction.
2004-11-28 08:36:22 +00:00
robocop
e4ae004ca9 Completed (I hope) Damyan Ivanov's patch that didn't work with insertions, updates and deletions. 2004-11-28 07:05:42 +00:00
robocop
bb170bd3b6 isc_interpret is fb_interpret again.
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
f6ec71ded5 Allow the -m2 option to work. 2004-11-24 09:04:06 +00:00
robocop
6f376126bc Applying Damyan Ivanov's isql patch.
Document it in the interactive help isql -?
Document also the m2 option (merge diagnostics).
2004-11-24 08:58:11 +00:00
robocop
c4cbb25f92 Misc. 2004-11-23 11:03:48 +00:00
robocop
cdeae35b31 Allow basic leaks reporting, fix a couple of leaks and delete obsolete comment. 2004-11-22 08:00:49 +00:00
hvlad
4fcd43a3d0 Allow isql to show large exception messages 2004-11-17 12:20:49 +00:00
robocop
628b088d2c Treat string literals and string constants with more respect. 2004-11-10 04:26:45 +00:00
robocop
5a33aeef91 Misc: extra semicolons do not help. :-) 2004-11-07 10:38:13 +00:00
robocop
1eb6693d0f When the XSQLDA is reallocated, set the version again (from my uncommitted FB1 fixes). 2004-11-07 10:20:27 +00:00
skidder
3e26513b38 fb_interpret->isc_interpet, deprecate isc_interpete, clean interface a little bit 2004-10-25 03:53:03 +00:00
robocop
31ba754981 After talking to Ann, decided to disable several items:
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
robocop
3c8612ad7a Solve assertion in latest MSVC regarding isspace() with two helper functions. This is a mere reorganization of Adriano's fix. 2004-09-29 03:44:36 +00:00
skidder
02a0915156 Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally 2004-09-28 06:28:38 +00:00
asfernandes
133f57e586 Fix a bug with international characters in ISQL causing assertions in VS2003 2004-09-26 02:57:40 +00:00
robocop
840bf14b36 If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes). 2004-09-26 01:49:52 +00:00
robocop
e6cb17cac6 Vulnerability reported by Daniel Urban.
First step: reorganize code.
Please do a full rebuild after retrieving those changes.
2004-09-22 01:59:39 +00:00
robocop
f0d309811f Corrections 2004-09-22 01:55:37 +00:00
dimitr
74a845706b Minor fixes. 2004-09-05 15:00:51 +00:00
robocop
1c7aa47ec1 Showing role's description is dependent on the ODS 2004-08-31 06:26:27 +00:00
robocop
5ffd45799e When a role hasn't been granted, tell that. Do not hide the role (wasted two minutes to discover it wasn't gbak problem). Also, show the role's description. 2004-08-30 10:10:14 +00:00
robocop
84a00693d9 Misc 2004-08-30 10:07:49 +00:00
robocop
3236e206c8 Add in the help the mention of SET HEADING that was introduced time ago. 2004-08-27 08:34:41 +00:00
robocop
5eb042a638 Style 2004-08-27 05:13:47 +00:00
robocop
e3b269d2a4 Show ODS as part of SHOW DATABASE command. 2004-08-27 05:03:13 +00:00
robocop
41a21aa306 Support for new UDF mechanism 2004-08-27 05:01:56 +00:00
robocop
be2f4fe195 Style and comment useless code 2004-08-27 05:00:31 +00:00
aafemt
5dafdcb461 Make prompt visible in MSYS 2004-08-26 11:10:28 +00:00
aafemt
59f08d2a29 Rework statement pre-parsing. Now it doesn't swallow tabs 2004-08-26 10:28:57 +00:00
aafemt
e9403dd1b8 Use automatic buffers instead of dynamic 2004-08-25 11:43:09 +00:00
robocop
b60c0e4cab Misc: format 2004-08-21 09:29:46 +00:00
aafemt
cdb105b26e Let isql return error code on script errors 2004-08-19 10:26:09 +00:00
brodsom
da46a55b16 -Correction (Found by Claudio) 2004-07-21 10:34:27 +00:00
robocop
949830d0c6 1.- const correctness
2.- style
3.- Try to fix the mess caused by different data types used to represent bifields of SCL_ constants defined in scl.h,
first round. No circular dependencies found through MSVC. Still pending dyn* and grant.epp files.
2004-06-29 04:37:59 +00:00
brodsom
e8a210e39d -C++ struct declaration style. 2004-06-08 18:27:59 +00:00
robocop
c77040ff97 Style and const 2004-06-06 05:25:32 +00:00
robocop
1332d98618 Literal strings should be treated as const char* 2004-06-05 09:37:18 +00:00