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

646 Commits

Author SHA1 Message Date
robocop
cadd8accc4 Implemented STEP for generators/sequences and took the opportunity to make the blrOp param const. Please rebuild the databases. 2014-04-09 02:28:38 +00:00
robocop
c90d9d4547 Misc. 2014-04-05 01:44:32 +00:00
alexpeshkoff
20e846369e Implemented CORE-3370: Resolve additional aspects of multiple security databases from services and cross-database requests POV (mapping names) 2014-04-04 15:57:18 +00:00
asfernandes
dd8b61bdae Fixed CORE-4380 - ISQL truncates blob when reading an empty segment. 2014-03-31 16:17:23 +00:00
asfernandes
a94ccac632 Revert the behavior of SHOW command without a database connection. It makes sense for SHOW SQL DIALECT. 2014-03-19 16:19:32 +00:00
asfernandes
c5ed1e0334 Misc. 2014-03-16 18:41:42 +00:00
asfernandes
d785b0a3fb Fixed problem with SHOW GENERATOR after SET GENERATOR became DDL. 2014-03-14 15:41:15 +00:00
robocop
3e52925a0d Include rdb$linger in SHOW DATABASE and-x (extract database). 2014-03-11 07:53:01 +00:00
robocop
13129284e3 The new API requires checking for null pointer before, not after the call. Maybe there are other places that need adjustment. 2014-03-11 07:47:34 +00:00
robocop
2645c2ea80 Gpre was generating code to connect isql to the build db (yachts) instead of the runtime db. 2014-03-11 06:22:52 +00:00
robocop
626270ff82 isql embedded hangs when trying to quit after an error (thanks Vlad for solution). 2014-03-11 06:08:27 +00:00
robocop
f76267b069 Misc. 2014-03-07 20:34:00 +00:00
robocop
caaf525d3c Misc. 2014-02-25 06:13:30 +00:00
robocop
b1c8cb93fb I don't know why this var was reintroduced, but I don't need it to build FB3. 2014-02-22 07:03:45 +00:00
asfernandes
cb3f15792e Warnings. 2014-02-21 15:47:05 +00:00
asfernandes
a52e0ad4c4 Fixed alignment issue. 2014-02-02 01:07:03 +00:00
asfernandes
787f3fd8aa Misc. 2014-02-02 01:02:57 +00:00
alexpeshkoff
b3c65c98b9 Renamed it once more 2014-01-27 16:47:43 +00:00
alexpeshkoff
ede5ddeaa5 Misc formattingsrc/common/classes/fb_tls.h 2014-01-23 12:26:03 +00:00
alexpeshkoff
9f0f251599 Fixed CORE-4321: Regression: ISQL does not destroy the SQL statement 2014-01-22 11:21:51 +00:00
alexpeshkoff
00971c3941 Changes in IUtl, suggested by Adriano & Dmitry 2014-01-20 14:36:08 +00:00
alexpeshkoff
078827c8e0 Fixed possible alignment issue 2014-01-20 13:08:56 +00:00
asfernandes
8e932b1809 Misc. and fixes. 2014-01-17 15:05:19 +00:00
alexpeshkoff
75d2767224 Misc postfixes for ISQL, thanks to Adriano 2014-01-17 14:09:19 +00:00
asfernandes
f3e7be12ba Misc. 2014-01-16 14:52:18 +00:00
alexpeshkoff
d7afd6b300 Print 3 digits in times + fix for windows 2014-01-16 13:44:19 +00:00
alexpeshkoff
1f19455043 Fixed posix build 2014-01-16 13:07:01 +00:00
alexpeshkoff
949defe5e6 Implemented CORE-4317: Make ISQL use new object API with 32-bit length for object sizes (messages, SQL statements, etc.)
Implementation also includes changes in GPRE, but this utility is not complete - only commands, used in ISQL,
are working in code generator for new API.
New interface IUtl is added - it performs tasks, related with database objects (attachment, transaction, etc.),
but not requiring routing in YValve, i.e. client only tasks.
2014-01-15 13:02:08 +00:00
asfernandes
0ec5daac05 Misc. 2014-01-06 00:51:37 +00:00
robocop
2810026363 Misc and warnings. 2013-12-29 00:35:50 +00:00
alexpeshkoff
d6297bebd4 Fixed some gcc warnings 2013-11-19 13:19:11 +00:00
fsg
bb544146a0 Don't call setlocale if it is not needed for editline, fxes CORE-4259 2013-11-16 11:48:48 +00:00
asfernandes
e9d92b3f40 1) Fixed some bugs with show/extract related to packages.
2) Cleanup related to multiple ODS, now using possible non-existent fields in older ODS which will return NULL.
2013-10-17 15:42:43 +00:00
asfernandes
dc99961e8b Misc. 2013-10-13 23:44:57 +00:00
fsg
66a9deb737 No need to include locale.h twice and don't try to call setlocale if it isn't available. 2013-09-14 15:22:37 +00:00
asfernandes
4789ba1672 Improvement CORE-4199 - Add optional START WITH clause to identity columns. 2013-09-04 15:54:19 +00:00
asfernandes
4097497416 Fixed CORE-4205 - ISQL -x does not output the START WITH clause of generators/sequences. 2013-09-04 15:39:30 +00:00
fsg
985e98a59e enable UTF8 support for the new editline version and isql 2013-08-27 17:04:00 +00:00
dimitr
92d2f6aa09 Improved the ISQL output for the SHOW GRANT command. 2013-08-21 13:51:50 +00:00
dimitr
fdf928dcb7 Increased the plan buffer size in ISQL to accomodate the detailed plan output. 2013-08-05 11:59:28 +00:00
dimitr
52ca5e0835 Fixed CORE-4149: New permission types are not displayed by ISQL. 2013-07-29 08:17:11 +00:00
dimitr
2b72d89701 Follow the alphabetical order of options. 2013-07-29 04:40:18 +00:00
asfernandes
2485ccfa12 Improvement CORE-4148 - Increase ISQL buffer size from 64 KB to 10 MB, as the engine. 2013-07-28 01:10:35 +00:00
asfernandes
cf05882c42 Warning. 2013-07-03 15:24:34 +00:00
asfernandes
c004120f44 Fixed CORE-4137 - Wrong metadata output script generate by isql / CHARACTER SETISO8859_1 sintaxe error. 2013-07-03 02:13:41 +00:00
asfernandes
21b23ef28d Misc. 2013-06-28 02:03:10 +00:00
dimitr
6e818b3241 Added support for the explained plan. 2013-06-26 06:57:38 +00:00
dimitr
68aaaf6af5 Added support for the explained plan. 2013-06-26 06:49:17 +00:00
dimitr
681695e10d Fixed CORE-3963: isql doesn't know the difference between UDF's and psql-functions. 2013-06-26 06:21:40 +00:00
dimitr
b94f613566 Fixed CORE-4122: Metadata export with isql (option -ex) does not export functions properly. 2013-06-25 08:58:46 +00:00
robocop
c0b8b68777 Misc. 2013-05-21 21:53:39 +00:00
mapopa
7c61a0bad9 MUISQL (QA Test bed Multiuser environment) target is not builded anymore from Firebird 1.x ages 2013-03-28 12:46:05 +00:00
asfernandes
3b543a9eae Misc. 2013-03-10 00:55:43 +00:00
dimitr
07a4c27b66 Fixed Windows build. Thanks to Dmitry Kovalenko. 2013-03-07 05:34:36 +00:00
alexpeshkoff
62f06e6c77 Postfix for CORE-3990 2013-03-01 13:50:37 +00:00
alexpeshkoff
cfbe804aa4 Fixed CORE-3990: Fix broken EDIT in isql 2013-03-01 11:55:59 +00:00
dimitr
3dd0507b96 Wiped out the code that never worked due to the missing support for native quads. 2012-11-01 01:36:27 +00:00
asfernandes
1dcad0fe90 Misc. 2012-06-03 03:00:24 +00:00
mkubecek
1f6eaf18e5 isql: fix buffer overflow when 'set width' sets bigger width
than column's natural size
2012-05-29 20:19:58 +00:00
mkubecek
7d64b76c14 isql: fix output if charset is different from locale 2012-05-29 20:14:54 +00:00
mkubecek
69da2285d0 Fix broken isql history with libedit 3.0 2012-05-23 09:12:16 +00:00
asfernandes
580172419b Misc. 2012-04-23 00:48:28 +00:00
hvlad
c036c65e7b Fixed bug CORE-3810 : isql: zero divide + coredump when use "-pag 0" command switch & set heading on inside .sql script 2012-04-07 18:25:44 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
asfernandes
ba36a29f9d 1) Refactored legacy (UDF) function creation.
2) Extend ISQL' SHOW FUNCTION to take packages and parameter's datatype of non-legacy functions into account.
2011-11-08 14:54:48 +00:00
alexpeshkoff
af4d1d87d6 Posix-only fix for CORE-3600: temp files fb_query_xxxx remains after ISQL has been closed 2011-10-05 09:59:34 +00:00
asfernandes
a566f5d725 Fixed CORE-3431 - ISQL pads UTF-8 data incorrectly. 2011-04-05 21:30:27 +00:00
asfernandes
dfe830af7c Added EVENT_TYPE and OBJECT_TYPE to DDL_TRIGGER context. Improvement suggested by Thomas Steinmaurer. 2011-02-20 01:08:48 +00:00
asfernandes
c9ec26c0c3 Feature CORE-726 - Boolean data type 2010-12-18 02:17:06 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
hvlad
e8ea25098f Fixed bug CORE-2837 : Asynchronous query cancellation (via Ctrl+C) is not worked 2010-02-01 14:34:48 +00:00
robocop
f9f8bde6e8 For now, isql is not prepared to deal with the new function types (packaged, BLR-based) until the code is enhanced. Besides, traditional UDFs should appear early in a script whereas BLR functions may depend on other objects, so they should appear later. 2010-01-29 10:54:11 +00:00
robocop
cd28279f13 More for CORE-2735: isql looks into packages, too for ODS12, as Adriano said. 2010-01-29 04:28:55 +00:00
robocop
1399401720 CORE-2735: isql hangs when trying to show a view based on a procedure. 2010-01-28 08:16:45 +00:00
robocop
302f149de1 CORE-2831: isql shouldn't display db and user name when extracting a script. 2010-01-28 07:59:44 +00:00
asfernandes
9c1bab1793 Feature CORE-1385 Identity columns - in its basic form 2010-01-13 19:14:15 +00:00
robocop
92c5daa384 Probably this completes Dmitry Sibiryakov's fix. 2010-01-05 04:08:46 +00:00
robocop
c9ce3b2345 Misc. 2010-01-05 04:07:55 +00:00
aafemt
270a3d4717 Fix BOF on truncation of reference action 2010-01-04 21:53:24 +00:00
asfernandes
0057047932 Misc 2009-12-30 00:50:39 +00:00
robocop
be0a0be938 Misc. 2009-12-29 11:32:57 +00:00
robocop
ecbd9b406c Nicer fix for isql v/s v3 schemas. 2009-12-29 09:07:08 +00:00
robocop
c6931dba93 Prevent isql from creating a db when we want to create a schema or worse, that it drops a db when we want to drop a schema. Of course, in the new ODS 12. Probably the change should be backported to avoid disasters with FB2.5 isql working with FB3.0 server. 2009-12-28 11:59:36 +00:00
robocop
6ef6202f89 Change this confusing ROWCOUNT feature to MAXROWS (there's also COUNT) but the old name is accepted for compatibility with FB2.5. 2009-12-28 11:54:51 +00:00
asfernandes
ab25c33244 Make packaged functions work 2009-12-28 01:06:40 +00:00
asfernandes
9aea621d65 READ BLOB command has one input parameter... 2009-12-19 21:13:47 +00:00
robocop
b2798cbd87 Misc. 2009-12-16 08:07:36 +00:00
asfernandes
a035a92ce2 Misc 2009-12-06 02:40:03 +00:00
asfernandes
03db7c025f Extract and show DDL triggers types 2009-12-05 15:08:18 +00:00
robocop
50f72024f6 CORE-2792: Bad extraction syntax for procedure's parameter based on table's field 2009-12-05 12:51:12 +00:00
robocop
e12fa4b174 isql: collapse a lot of copy/paste into a single function. 2009-12-05 12:39:46 +00:00
robocop
f0c2759919 CORE-800: Easy metadata extract improvements 2009-12-05 05:24:59 +00:00
robocop
139b2652df Comments. 2009-12-04 08:30:26 +00:00
robocop
6d1781b15b CORE-2788. 2009-12-04 08:01:28 +00:00
robocop
1386adcf90 Style. 2009-11-16 08:06:31 +00:00
robocop
7ad9fb86bd Misc. 2009-11-14 10:47:10 +00:00
robocop
3d93cbdd52 Add support for explicit difference file name in scripts. 2009-11-14 10:31:47 +00:00
asfernandes
cefe295ad9 Misc 2009-11-14 01:20:33 +00:00
robocop
f1277daa43 Align comments. 2009-11-13 10:41:06 +00:00
robocop
aa1edc2039 More package support: corrections. 2009-11-13 09:23:00 +00:00
robocop
79931e1285 Continue package support in isql. 2009-11-13 08:37:04 +00:00
asfernandes
0b2a994c27 Misc 2009-11-13 01:36:09 +00:00
robocop
8654501b8b Correction to package-dependent code. 2009-11-12 11:37:37 +00:00
robocop
7ee3db1d37 Fix Mark's rowcount feature to detect errors properly and add the due messages to the db. 2009-11-12 07:41:31 +00:00
robocop
33ca7e6a77 Package support. Work in progress. 2009-11-12 07:17:01 +00:00
asfernandes
f2cd6b7ec2 Misc 2009-11-12 01:38:48 +00:00
robocop
402ccbd6bc CORE-2741 and a special case of the ancient CORE-932 2009-11-09 10:43:16 +00:00
robocop
6540f5cf4a Adriano says we shouldn't assume argv[argc] is null. 2009-11-09 06:18:34 +00:00
robocop
22af8f184d I'm only preventing isql from hanging. This is just a bit of CORE-2735. 2009-11-07 09:22:03 +00:00
robocop
08a33d50cc Unfortunately several of these are intertwined:
CORE-462 	 New option in addition to -V switch to specify a custom verbose interval
CORE-2540 	 Utilities need a more coherent way to show help and version
CORE-2541 	 Too many hardcoded messages in nbackup
CORE-2542 	 qli and nbackup accept arbitrary input after the first letter of an option
CORE-2543 	 nbackup may hide the real cause of failure
CORE-2545	 Lack of several validations in gbak
CORE-2547 	 Utilities need to honor their minimum number of characters to recognize an option
CORE-2565 	 Many hardcoded messages in Trace Manager
Moving functions that don't depend on preprocessing to iutils.cpp in isql is the only alien change here.
2009-11-05 09:03:41 +00:00
dimitr
a737954583 Wipe out the SCROLLABLE_CURSORS code + minor cleanup. 2009-10-31 06:28:40 +00:00
robocop
6b997b901f Misc. 2009-10-30 10:59:52 +00:00
asfernandes
42e378d376 Do not convert filenames to absolute form for display. That breaks tests made with ISQL. (CORE-2575) 2009-10-24 15:28:25 +00:00
asfernandes
71d8df8e14 Improvement CORE-2575 - Make ISQL "input" command open relative filenames based on the directory of last opened (and not closed) input file 2009-10-23 00:16:59 +00:00
asfernandes
ed0e0daeb3 - External Engines implementation.
- Plugins API.

- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.

- Fixed CORE-2699 - Common table expression context could be used with parameters.

- Introduce ODS 12.0.

- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
robocop
a7f88b2316 Misc. 2009-09-10 06:13:02 +00:00
hvlad
f8c417adb3 Improvement CORE-2619 : Make memory and other statistics to work with 64-bit values.
Part (b) add perf64 API into client and use perf64 API in utilities
2009-09-09 10:28:26 +00:00
robocop
dc9e7e7a4a Paul Beach confirmed this Darwin code is no longer necessary. 2009-08-01 05:37:08 +00:00
asfernandes
f59fda5175 GCC warning 2009-07-25 18:43:10 +00:00
asfernandes
6377356940 Misc 2009-07-23 00:56:28 +00:00
asfernandes
029e9ff6aa Fixed CORE-915 - ISQL extract procedures body with double line break 2009-07-20 15:46:46 +00:00
robocop
96177e8f0a Style. 2009-07-18 12:39:15 +00:00
robocop
cfb9403481 Warnings. 2009-07-17 09:06:03 +00:00
robocop
244a57ed1f Misc. 2009-07-17 09:03:14 +00:00
robocop
ba89580753 CORE 2540: Utilities need a more coherent way to show help and version
Now all utilities react to -z for version and -? for help (qli was left for another time)
CORE-2541: Too many hardcoded messages in nbackup (done partially)
2009-07-07 10:25:50 +00:00
robocop
f10e1b72eb Style. 2009-06-27 06:23:36 +00:00
aafemt
24f53abd20 Fix for my previous commit 2009-06-23 11:59:20 +00:00
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