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

1176 Commits

Author SHA1 Message Date
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +00:00
asfernandes
54b36766c0 Misc 2007-11-17 00:38:16 +00:00
asfernandes
5d22a267ea Fixed warning - thanks to Dmitry 2007-11-16 13:47:14 +00:00
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
asfernandes
39c1e6cc82 Misc 2007-10-28 16:00:53 +00:00
asfernandes
b2669fac42 Misc 2007-10-27 18:09:32 +00:00
robocop
88a642b4e7 Misc. 2007-10-27 07:03:25 +00:00
asfernandes
c7440554de Fixed CORE-1528 - Functions DATEDIFF, ABS(integer const) does not work in dialect 1 2007-10-25 14:31:17 +00:00
robocop
874d8bb906 Fix CORE-1508.
I applied a simple fix because I think that expressions like
-gen_id() don't deserve to carry the alias "gen_id", etc.
But it makes sense for constants and NULL.
2007-10-24 06:23:53 +00:00
asfernandes
0531244d4b Misc 2007-10-21 14:49:37 +00:00
alexpeshkoff
407cf7e1d8 Changes suggested by Claudio and Adriano. Further cleanup 2007-10-19 11:51:58 +00:00
asfernandes
30f5bffea4 Misc 2007-10-19 01:25:11 +00:00
asfernandes
3073cc8a13 Fixed the problem (with POWER) described in a comment of CORE-1514 2007-10-17 15:27:13 +00:00
alexpeshkoff
e4271ba6fa Fixed CORE-1501: Wrong access to SLONG data in dsql_nod 2007-10-17 14:35:31 +00:00
asfernandes
944108171e Use const in SysFunction as suggested by Dmitry Kovalenko 2007-10-12 20:25:04 +00:00
asfernandes
cc2b3ccb9a 1) Fixed CORE-1510 - Bad XSQLVAR [NULL flags] for (2*COALESCE(NULL,NULL)) - thanks to Dmitry Kovalenko
2) Fixed few problems with NULLs and new system functions
2007-10-12 00:52:47 +00:00
robocop
caedf6f181 Fixing comditional compilation. 2007-10-06 10:30:53 +00:00
asfernandes
93642be94a Fixed CORE-1492 - BLOB isn't compatible with [VAR]CHAR in COALESCE 2007-10-04 15:33:34 +00:00
asfernandes
bad4ef9667 Fixed CORE-1497 - New builtin function DATEADD() implements wrong choice of keywords for expanded syntax 2007-10-04 15:23:22 +00:00
asfernandes
d8dde42d07 Fixed CORE-1490 - New builtin function DATEDIFF() implements wrong choice of keywords for expanded syntax 2007-10-02 15:37:38 +00:00
asfernandes
d51c478a2c More complete fix for CORE-1451 2007-09-27 16:04:51 +00:00
asfernandes
63de95f1d9 Fixed CORE-1451 - Using RDB$DB_KEY in where section while selecting from a procedure crashes the server 2007-09-27 15:52:47 +00:00
hvlad
fb0ae3e0be Correct my mistake - new built-in UDFs must be extracted with quotes by isql 2007-08-29 09:49:52 +00:00
hvlad
f706becf22 Lets isql not quote new non-reserved tokens 2007-08-29 09:05:17 +00:00
dimitr
4284e1ee34 Resolved CORE-1386. 2007-08-27 10:50:00 +00:00
dimitr
4b15669f26 Misc. 2007-08-27 10:19:41 +00:00
robocop
0904112078 Misc: document code that doesn't handle quoted names as expected. It may be bug or strange feature for cursor names. 2007-08-26 09:14:39 +00:00
robocop
fa1538a1ae Minor changes in MetaName usage. 2007-08-26 09:05:29 +00:00
asfernandes
0b76787f19 Fixed CORE-1417 - "Invalid BLOB ID" in IBX insert operation 2007-08-22 02:18:56 +00:00
hvlad
f13b21de65 Fix for CORE-908 : Garbage in plan output of complex statement 2007-08-09 11:05:43 +00:00
asfernandes
6331db3ee4 Correction 2007-08-02 00:51:15 +00:00
asfernandes
b5a23c12d1 Improvements:
1) CORE-1387 - Add MILLISECONDS handling to EXTRACT, DATEADD and DATEDIFF functions
2) CORE-663 - EXTRACT(WEEK FROM DATE)
2007-07-31 01:22:59 +00:00
hvlad
322a31eeda Implement RECREATE GLOBAL TEMPORARY TABLE 2007-07-29 08:15:22 +00:00
asfernandes
64f80d1914 Fixed CORE-1379 - Invalid parameter type when using it in CHAR_LENGTH function 2007-07-25 15:46:08 +00:00
asfernandes
8c202cdd61 Fixed CORE-1378 - Domain names and charset issues 2007-07-24 16:28:08 +00:00
robocop
cb661b410b Totally misc. 2007-07-22 09:05:05 +00:00
hvlad
671e59e993 Fixed bug CORE-1373 : Incorrect result of recursive CTE query when recursive member's SELECT list contains expression using self-referenced fields 2007-07-21 21:28:56 +00:00
alexpeshkoff
21de02480f Fixed CORE-1371: Execute block fails within execute statement 2007-07-20 09:35:52 +00:00
robocop
5c152e5cfe Misc. 2007-07-08 08:43:30 +00:00
asfernandes
379ebc9ab6 Misc 2007-07-01 02:40:15 +00:00
hvlad
77a5e7498c Improve implementation of nod_src_info to avoid generation of additional blr_begin\blr_end pair 2007-06-29 10:22:50 +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
asfernandes
564c2887a2 Second part of fix for CORE-1313, fixed the issue with RDB$DB_KEY and derived tables 2007-06-15 00:41:12 +00:00
asfernandes
ea48ea8b3f Fixed CORE-1313 - RDB$DB_KEY not supported in merge command 2007-06-14 02:15:36 +00:00
robocop
0c819f0520 Misc and VC6 compilation workaround. 2007-06-12 08:29:36 +00:00
asfernandes
f8c2d590a0 Rollback fix for CORE-1245 and CORE-1246 and defer to better times, as each change causes regressions 2007-06-09 19:31:10 +00:00
asfernandes
f4be0d2421 Fixed CORE-1315 - Data type unknown, for most functions ported from Yaffil 2007-06-09 19:18:21 +00:00
robocop
d191a665d3 Misc. 2007-06-09 09:04:59 +00:00
hvlad
6d7c5c7a5d Quick fix for CORE-1315 : Data type unknown. To be reviewed by Adriano 2007-06-08 13:24:28 +00:00
asfernandes
595a185dd3 Rework fix for CORE-1245 to fix:
CORE-1246 - Incorrect column values with outer joins and derived tables,
CORE-1306 - Indices not used for views
2007-06-08 02:20:00 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +00:00
asfernandes
b63bbb7c59 Fix for:
CORE-1286 - Bug with COMPUTED BY fields
CORE-1292 - Can't create table using long username and UTF8 as attachment charset
2007-06-02 19:13:29 +00:00
alexpeshkoff
86fa05c192 Misc 2007-05-28 12:46:15 +00:00
asfernandes
3431784b92 Misc 2007-05-27 00:37:39 +00:00
asfernandes
e705b335f8 Fix non-ASCII object names in:
1) aliases in PLANs
2) EXECUTE PROCEDURE
3) SELECTs inside procedures/triggers
2007-05-26 22:08:13 +00:00
asfernandes
c67afcb4ee Improvement CORE-1277 - Automatic transliteration of text blobs 2007-05-22 02:14:20 +00:00
asfernandes
3d246aff00 Rollback fix for CORE-1246 - Incorrect column values with outer joins and derived tables, that broke recursive-CTE and uses scarse contexts 2007-05-18 01:17:27 +00:00
robocop
b7446d9c64 Misc. 2007-05-16 06:53:47 +00:00
asfernandes
1a427efe19 Changed UPDATE OR INSERT to check existence of records with IS NOT DISTINCT 2007-05-13 14:06:41 +00:00
asfernandes
bf895341ef Fixed CORE-1256 - Table columns hide destination variables of RETURNING INTO, and others problems recent introduced 2007-05-13 01:37:54 +00:00
asfernandes
03e856b6f7 Use UNION ALL instead of UNION 2007-05-08 15:50:48 +00:00
asfernandes
ef83b131b3 Fixed registration and use of custom character sets 2007-05-08 15:33:22 +00:00
asfernandes
b5fab19683 Misc 2007-05-08 02:31:11 +00:00
asfernandes
d27a1bdd51 Fixed CORE-1246 - Incorrect column values with outer joins and derived tables 2007-05-06 21:30:38 +00:00
asfernandes
20b25e8c61 Fixed ambiguity problem in NATURAL/USING join and derived tables 2007-05-06 16:45:49 +00:00
asfernandes
cfe0ad95cf Fixed CORE-1227 - LIST() function seems not work if used twice or more in a query 2007-05-05 19:28:46 +00:00
asfernandes
c08581d727 Fixed CORE-1244 - Server crash on select * from <recursive CTE> 2007-05-05 03:17:52 +00:00
robocop
52f1b15e0c Misc. 2007-05-02 06:57:18 +00:00
asfernandes
c5cf6ea6b8 Implementation of CORE-1235: NATURAL JOIN and JOIN...USING 2007-04-29 19:04:26 +00:00
alexpeshkoff
a49f8a016f misc 2007-04-28 14:11:30 +00:00
dimitr
fce8a28953 Fixed the issue reported by grostoon in fb-devel. 2007-04-27 15:53:33 +00:00
asfernandes
676b447138 Misc 2007-04-25 02:26:33 +00:00
asfernandes
b06deea4c6 CORE-1226: Allow RETURNING in INSERT...SELECT, UPDATE and DELETE 2007-04-24 15:22:05 +00:00
dimitr
4eed77897a Done CORE-1213. 2007-04-18 17:29:00 +00:00
asfernandes
b6569588d9 Added missing items noted by Claudio 2007-04-15 18:34:04 +00:00
robocop
422d659fcb Misc. 2007-04-15 11:25:23 +00:00
asfernandes
166fc0b865 Misc 2007-04-13 01:37:44 +00:00
asfernandes
133604354b Correction 2007-04-13 01:11:36 +00:00
asfernandes
8c7076b67f Port of Yaffil builtin functions 2007-04-12 15:56:34 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
robocop
f7817e5baa Totally misc. 2007-03-31 06:50:01 +00:00
dimitr
cfd18fdedd Fixed CORE-1183. 2007-03-28 09:47:55 +00:00
dimitr
27e2ee9be7 Small improvement partially related to CORE-1181. It allows to keep the field name if the cast source is an aggregated column. 2007-03-28 09:27:54 +00:00
dimitr
a32435b66d Fixed CORE-1175. 2007-03-22 12:53:58 +00:00
robocop
194c5ec36a Misc (some spaces mixed with tabs). 2007-03-11 03:13:18 +00:00
asfernandes
6fef59af74 Fixed CORE-1156 - Prepare fails when having a parameter in a DSQL statement before a sub query 2007-03-06 15:54:34 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
robocop
77f0788ba0 Misc. 2007-02-02 10:56:53 +00:00
dimitr
54d1d0a3d3 Let's always initialize node arguments. Thanks to Claudio and David Rushby. 2007-01-29 03:17:21 +00:00
asfernandes
179eb4f012 No need to generated a outer join if WHEN NOT MATCHED is not present in MERGE 2007-01-26 10:16:31 +00:00
asfernandes
cec7eaa8b6 Some changes based on Claudio's comments 2007-01-21 15:35:35 +00:00
alexpeshkoff
d66281291f 1. Make classic server close shutdown normally when killed by signals 2 & 15.
2. Don't leave running instances of fb_inet_server after database shutdown.
3. To make all this possible - reworked Y-Valve in general.
2007-01-20 14:45:45 +00:00
asfernandes
f30ee6b63e Use debug informations in EXECUTE BLOCK 2007-01-20 14:18:18 +00:00
alexpeshkoff
e79660bca6 fixed gcc warning 2007-01-20 14:07:18 +00:00
dimitr
550df186da Front-ported bugfix for CORE-1094. 2007-01-19 12:11:16 +00:00
asfernandes
87aa10c9cd Validate input parameters 2007-01-18 00:26:14 +00:00
asfernandes
aca179f398 Full domain support and NOT NULL in PSQL 2007-01-17 01:19:01 +00:00
asfernandes
7dcab61744 Be standard compliant and allow "AS" between the table name and alias in UPDATE, DELETE and MERGE 2007-01-01 14:13:35 +00:00
asfernandes
7dd5d15b17 Allow table alias on INTO part of MERGE 2006-12-31 20:55:16 +00:00
asfernandes
9c34ba9dfb Misc 2006-12-16 02:21:21 +00:00
dimitr
7c10900395 Fixed CORE-1055. A change in METD_get_relation() seems to not be strongly required, but I keep it in HEAD for testing. 2006-12-15 16:04:40 +00:00
asfernandes
d2e0434a07 Fixed CORE-1012 - IBO problems with FB >= 1.5.3 "Error with joins and auto-generated search query" 2006-12-01 13:49:11 +00:00
asfernandes
57795e5da8 Replace a deleted piece of code - thanks to Claudio 2006-11-29 00:20:01 +00:00
asfernandes
5e818bd4a9 Rename REPLACE to UPDATE OR INSERT 2006-11-26 15:40:10 +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
d0dec479f2 Remove "MESSAGE" keyword 2006-11-20 12:37:15 +00:00
asfernandes
448a2cca48 Remove not correct warnings 2006-11-18 19:32:11 +00:00
robocop
7a46dc7247 Misc. 2006-11-10 08:12:07 +00:00
robocop
7f2b0cd25d Fix typos in recent messages. 2006-11-10 08:10:56 +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
hvlad
05b028628f Replace few hardcoded error messages by new error codes 2006-11-05 10:54:46 +00:00
asfernandes
c29c3dccb3 Misc 2006-11-04 03:03:45 +00:00
hvlad
f48f2af25b Few corrections pointed by Claudio 2006-11-03 09:42:42 +00:00
asfernandes
4197a8be70 Fixed a bug when the connection charset is multibyte, appeared after recent changes to CsConvert class. 2006-11-02 22:37:19 +00:00
asfernandes
88a9a84a01 Misc 2006-10-31 14:23:31 +00:00
hvlad
58d381edd7 1. Remove blr_src_info code as it is prevents database downgrade from ODS 11.1
2. Put debug information (mapping between blr offset and source line\column and names of local variables) into new blob field RDB$DEBUG_INFO
This is first step to implement native SQL debugger i believe
2006-10-30 20:58:06 +00:00
dimitr
651607f5a9 Done CORE-863. 2006-10-24 16:45:43 +00:00
robocop
5338e807ae Misc. 2006-10-24 03:48:36 +00:00
robocop
3a05221f9a Fix prototype, thanks to Steve Boyd. 2006-10-24 02:26:36 +00:00
asfernandes
e57edcaa5c Misc 2006-10-20 18:49:23 +00:00
robocop
1b9068c0bf Disable the duplicate field check for sort.
(But keep the check for max items at 255.)
2006-10-19 05:12:28 +00:00
robocop
a270d9c440 Put into the msg file several hardcoded messages marked by Arno to be localized. 2006-10-17 06:03:21 +00:00
asfernandes
6f9092fe35 Misc 2006-10-08 01:57:21 +00:00
asfernandes
7c100231a9 Misc 2006-10-07 17:06:59 +00:00
robocop
2b27f56428 - Give meaningful message when reaching max group items (255), reported by David Schnepper.
- Misc: more mnemonics for nodes' argument positions.
- Experimental: try to detect conflicting sort options on the same field.
2006-10-07 09:40:59 +00:00
robocop
1e7814b7ca Misc: more mnemonic for nodes' argument positions. 2006-10-07 09:30:43 +00:00
robocop
e0badaed04 Solve problem reported by Bill Oliver in fb-devel: we should complain when someone tries to sort on more than 255 items. 2006-09-30 09:10:28 +00:00
asfernandes
f2e24565f0 Allow only one of WHEN MATCHED and WHEN NOT MATCHED in MERGE as the SQL spec 2006-09-17 01:41:24 +00:00
asfernandes
9b5ae679c3 Fixed problem with REPLACE and WHEN blocks 2006-09-16 15:53:51 +00:00
asfernandes
bafe7ee53c Misc 2006-09-15 01:54:50 +00:00
asfernandes
19c8da717c Be more simple as suggested by Claudio 2006-09-14 11:44:11 +00:00
robocop
98ac099832 Skip irrelevant characters at the beginning of trigger's body.
Granted, this has little practical effect because (unlike procedures) trigger bodies include the AS keyword, so garbage between AS and BEGIN is not detected.
2006-09-14 09:43:00 +00:00
robocop
db7c21a752 Misc. 2006-09-14 09:40:58 +00:00
asfernandes
addb91948c Misc 2006-09-14 02:27:59 +00:00
asfernandes
a40b7b8ae5 MERGE statement 2006-09-14 02:05:32 +00:00
asfernandes
f47711602e Fix the problem with CAST and parameters reported by Maycon Ferraça in fb-devel 2006-09-13 12:59:53 +00:00
dimitr
726169caed Fixed CORE-924. 2006-09-12 08:52:03 +00:00
robocop
af8ecc26ca Solve three problems with arrays:
- Don't allow to apply scalar/subscript syntax to fields that aren't array.
- Detect if we get corrupt database containing array with more than 16 dimensions.
- Reject attempt to subscript array with more than 16 dimensions and thus fix the buffer overrun.
2006-09-10 09:05:40 +00:00
dimitr
daa96c44e9 Fixed GCC-based builds. 2006-09-07 11:46:43 +00:00
asfernandes
0cfd1ec791 Misc 2006-09-07 03:43:55 +00:00
asfernandes
4599805c7f Detect ambiguities in implicit MATCHING of views in REPLACE 2006-09-07 03:30:31 +00:00
asfernandes
5c26d54f02 1) Fixed CORE-899 - Problems with explicit cursors in unwanted states
2) Make RDB$DB_KEY in outer joins returns NULL when appropriate
2006-09-07 01:55:49 +00:00
asfernandes
9d4e6c7199 Misc 2006-09-06 02:43:37 +00:00
robocop
c9e311f45d Misc. 2006-09-05 08:17:26 +00:00
asfernandes
55ec30965d REPLACE statement 2006-09-03 01:09:23 +00:00
robocop
ef2f4ef904 Centralize detection of those pesky implicit domains. 2006-09-01 02:42:09 +00:00
robocop
7dab022ddf Prevent users from creating explicit domains that resemble implicit domains because this trick confuses our internal checks:
SQL> create domain rdb$1 int;
Statement failed, SQLCODE = -637
Dynamic SQL Error
-SQL error code = -637
-Implicit domain name RDB$1 not allowed in user created domain
2006-08-31 09:06:15 +00:00
asfernandes
9efd321894 Fixed crash with CREATE VIEW ... AS SELECT and the number of columns of the SELECT is greated than the number of columns of the VIEW 2006-08-30 02:31:41 +00:00
hvlad
705db538f9 Fix for CORE-908: Garbage in plan output of complex statement 2006-08-24 13:28:42 +00:00
asfernandes
8622322ca2 Print the statement text before print the BLR 2006-08-20 19:26:35 +00:00
asfernandes
33422843fc Rollback change not necessary after creation of consts_pub.h 2006-08-20 15:23:00 +00:00
asfernandes
3fb67ef75d Fix problems of RETURNING...INTO of not yet existent constructions (update/delete) 2006-08-19 18:18:31 +00:00
asfernandes
b3cf84ecdf Fixed INSERT...RETURNING...INTO not working 2006-08-19 15:49:28 +00:00
asfernandes
b7af27215e Allow usage of domains in PSQL (with TYPE OF syntax) 2006-08-19 02:52:39 +00:00
aafemt
c662ea7d9e Warnings 2006-08-17 12:08:49 +00:00
asfernandes
ad5a99420d Fixed CORE-896 - SUBSTRING with NULL offset or length don't return NULL 2006-08-16 00:09:27 +00:00
asfernandes
8b31e78863 Misc 2006-08-14 03:34:02 +00:00
robocop
471d052e82 Misc. 2006-08-13 06:46:16 +00:00
robocop
aa0007fcef Misc and better skipping of irrelevant characters in procedure bodies (do not spoil user formatting as requested by Dmitry). 2006-08-13 06:42:28 +00:00
asfernandes
4180a46169 1) Make SUBSTRING of BLOB work
2) More refactoration on describing result of expressions (concatenate and substring)
2006-08-12 03:17:01 +00:00
asfernandes
eb4fb2f491 1) Concatenate of BLOBs
2) Start a refactoration on descriptor manipulations
2006-08-10 02:53:16 +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
df38d56bb5 Misc 2006-08-06 18:03:22 +00:00
hvlad
7d1693ae39 Corrected logic of removing recursive members from joins in recursive CTE 2006-08-05 21:56:04 +00:00
dimitr
3231829cf8 Ported fix for CORE-855 to HEAD. 2006-08-04 04:32:27 +00:00
asfernandes
9fc1ccbba5 Misc 2006-08-02 01:22:11 +00:00
asfernandes
069e46b050 RECURSIVE is reserved in SQL2003 2006-08-02 00:53:01 +00:00
hvlad
b20aa92714 Common table expressions implementation 2006-08-01 20:37:58 +00:00
asfernandes
273da882bc Misc 2006-07-31 01:46:52 +00:00
robocop
34e37d54ae Fix CORE-200
Handle column names in subqueries.
Put some more names for common operations and special data.
Disable nod_count since it's not generated by our parser.
2006-07-30 05:09:41 +00:00
robocop
bcf2cb8701 1.- COALESCE/CASE and VIA (subqueries) allowed breach in computed field checks (no array and no blob).
2.- Misc: since gbak allows not only to backup metadata only but to restore metadata only (even from a full backup), changed the help message.
2006-07-30 02:59:29 +00:00
robocop
8b74a50186 Fix CORE-871
I did this fix for SF Bug #228135 in February 2002 to FB1. On November 2002, for unknown reasons to me, Ignacio Ortega made the fix a comment, so FB1.5, FB2 and FB2.1 have the bug again. I'm fixing FB2.1 to close the same bug that now appears as CORE-871. We need more regression tests.
2006-07-28 07:45:50 +00:00
dimitr
cffe207614 A few fixes for the monitoring tables. 2006-07-23 12:14:59 +00:00
dimitr
bbaea14abe Misc. 2006-07-23 11:14:43 +00:00
dimitr
9d534e1521 Misc. 2006-07-21 04:15:40 +00:00
dimitr
5519d31f70 More format overflow checks. Also this fixes CORE-842. 2006-07-20 09:57:04 +00:00
asfernandes
ea0435247a Misc 2006-07-18 02:45:35 +00:00
dimitr
c68587fe66 1. Virtual tables
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
dimitr
d5b27fdb17 1) Fixed CORE-831.
2) Solved CORE-779 (partially intermixed with another changes that will be committed tomorrow).
2006-07-17 12:44:18 +00:00
asfernandes
07348995d1 Remove these autogenerated files as everybody can build with the integrated btyacc 2006-07-17 02:22:10 +00:00
asfernandes
84c593b954 Correction for problem with CURRENT_USER/ROLE and client charset 2006-07-12 18:44:08 +00:00
asfernandes
a86cf35ad4 Synchronization of DSQL metadata cache objects in classic-server 2006-07-10 03:12:10 +00:00
robocop
f14fd66173 Misc: we typically use the exact node name when doing DSQL's internal debugging output. 2006-07-05 04:37:53 +00:00
hvlad
fe67b9e045 Regenerate parser files 2006-07-04 14:49:05 +00:00
hvlad
fac53c8177 Added blr_src_info. Error call stack now contains not only
procedures\triggers names but line\column numbers also.
Thanks to Eugeney Putilin for idea
2006-07-04 14:44:43 +00:00
robocop
9aba938bf3 Totally misc. 2006-07-04 05:27:58 +00:00
asfernandes
eb00409120 Mark potential dropped UDFs as dropped as we do with procedures and relations 2006-07-03 01:28:21 +00:00
asfernandes
aa6753fc82 Regenerate 2006-06-26 20:58:46 +00:00
asfernandes
1a0df78e29 Allow the use of COLLATE in parameters (input and output) and variables in PSQL - feature request (CORE-684) COLLATE IN STORED PROCEDURES, OR IN PARAMETERS 2006-06-26 20:58:13 +00:00
robocop
db5f743685 Misc. 2006-06-16 08:13:20 +00:00
robocop
1813e5a124 Fix bug noticed by Dmitry Yemanov: sometimes, special characters are detected and rejected. Other times, anything that follows them is silenty ignored. Unacceptable. We were accesing an array out of bounds.
update customers set city = 1<SC> where 1 = 0;
In this case, SC was a strange character in the range 127..255 (for example, 238) and I had to use Windows' chcp 1251 and isql's set names 1251 to see the problem.
2006-06-07 05:39:46 +00:00
robocop
00b890174a Blob sub_types greater than 1 (text) are for our internal ussage. Negative blob sub_types are for users. Stop users from creating columns with blob sub_types beyond. Probably the same check has to be done in DYN. 2006-06-02 08:44:19 +00:00
robocop
7d4cb328fc Misc. 2006-06-02 08:03:22 +00:00
dimitr
bcf8332407 sed-file is not used anymore. 2006-06-02 03:34:16 +00:00
dimitr
9881681557 Complete one of my previous commits. 2006-06-01 09:48:02 +00:00
dimitr
78c23ca592 Some preparation for RETURNING in UPDATE/DELETE.
To be completed in v3.0.
2006-05-31 18:02:34 +00:00
robocop
60d8b0c277 Follow Alex' fix but in the other DSQL preprocessed file. 2006-05-31 01:19:59 +00:00
alexpeshkoff
9806b4d1b7 fixed regression in diagnostics 2006-05-30 14:45:07 +00:00
robocop
73c9775c2a Tag time differences and timestamp differences as NUMERIC sub_type if they produce exact numeric results. 2006-05-28 07:46:35 +00:00
dimitr
5c049f1eab MT related cleanup. 2006-05-26 06:11:04 +00:00
asfernandes
67e900c4f3 Regenerate parse.cpp 2006-05-26 01:01:04 +00:00
asfernandes
d76fde6496 GLOBAL is reserved word in SQL2003. Move from non_reserved_word to keyword_or_column. 2006-05-26 00:59:17 +00:00
robocop
7040d668fd Misc. 2006-05-25 08:40:23 +00:00
dimitr
bc83c1ef4c Updated parse.cpp 2006-05-25 08:01:33 +00:00
robocop
1571fef42c Introduce the new v2.1 keywords as non-reserved words. Someone with the new build system (btyacc) please regenerate the files. 2006-05-25 07:05:35 +00:00
dimitr
006d5871b0 Restored my previous solution. The final decision is that NOT IN cannot be index-optimized reliably. 2006-05-24 13:19:33 +00:00
asfernandes
24d936cd70 Misc 2006-05-22 01:29:06 +00:00
asfernandes
8e5e51e84d New keywords is using tok_version = 2 2006-05-22 00:14:20 +00:00
hvlad
1296e18049 Regenerate parser and error codes files (after GTT) 2006-05-21 22:14:38 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
asfernandes
292ad66e96 Misc 2006-05-20 01:53:51 +00:00
asfernandes
a3b411a4c1 Misc 2006-05-20 00:59:22 +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
1cd8eb20da Cope with old compilers. 2006-05-18 06:26:15 +00:00
dimitr
e3646a03d2 Fixed the regression reported by Adriano. 2006-05-17 04:33:44 +00:00
asfernandes
abc1a41b6d Misc 2006-05-17 02:43:12 +00:00
dimitr
4976c7d29d Committed the correct UPDATE behaviour. Disabled so far. 2006-05-16 09:09:18 +00:00
asfernandes
c3348f77b9 Fix problem when trimming not-nullable blobs 2006-05-14 14:32:43 +00:00
asfernandes
40bfb5f0f4 Make TRIM of blob work - returning a blob 2006-05-13 01:27:35 +00:00
robocop
136cab1caf Misc. 2006-05-04 02:57:26 +00:00
asfernandes
f3251b285b Misc 2006-05-02 00:15:29 +00:00
robocop
ea3c37f4cb Remove unused code. 2006-05-02 00:11:46 +00:00
robocop
07f4bed382 I don't want another "interprete", so I rename "defered" to "deferred". 2006-05-02 00:04:12 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +00:00
dimitr
cebda2b4bf Threading cleanup. More to follow. 2006-05-01 04:43:59 +00:00
alexpeshkoff
469589f573 Use Firebird::Array instead of STL's vector 2006-04-25 17:49:24 +00:00
dimitr
8b45562f81 The DSQL code of the LIST function. Unstable yet. 2006-04-24 17:24:26 +00:00
asfernandes
73d35f65d6 Sync with parse.y 2006-04-23 15:14:35 +00:00
robocop
e54dedb70c Misc. 2006-04-20 01:23:10 +00:00
dimitr
cfefbee57a Removed the lexer hacks from the parser. 2006-04-19 11:32:37 +00:00
asfernandes
3b54c24652 Let LOWER/UPPER (blob) work - returning a blob 2006-04-16 18:45:40 +00:00
robocop
866854d91c Misc. 2006-04-11 07:14:48 +00:00
alexpeshkoff
3e8edbaeb3 fixed AV during massive addition of relations to DSQL hash 2006-04-09 12:47:29 +00:00
asfernandes
a34d59a454 Fix problem which occur when select a field with NONE charset when using another connection charset - second part of problem reported by Michal Kubecek 2006-04-08 03:09:08 +00:00
dimitr
ebed4eb85f More threading related fixes. As a side effect, it disables a primitive client-side caching of a few predefined queries, but it doesn't show any performance difference. 2006-04-07 09:16:55 +00:00
dimitr
f084389653 Fixed the regression caused by my changes re. Dialect 1. 2006-04-05 04:38:03 +00:00
hvlad
5f105d2154 Make input parameters of EXECUTE BLOCK statement nullable 2006-03-29 09:41:48 +00:00
arnobrinkman
ce6eeb13c7 Fix node compare function for derived fields.
Fixes field test-item #1449377.
2006-03-14 10:57:11 +00:00
asfernandes
32f770b760 Fix incorrect malformed string error, reported by Richard Wesley 2006-03-10 00:08:44 +00:00
dimitr
8da75613c4 Fixed yet another bug in explicit cursors.
Unfortunately, BLR compatibility is not provided, so users have to recompile their SPs/triggers.
2006-03-07 17:52:33 +00:00
dimitr
958b1fea85 Fixed bug in RETURNING INTO code. 2006-03-07 14:42:19 +00:00
dimitr
fee85ae5d6 Added a context overflow check to DSQL as well.
Based on a bugreport by Volker Rehn.
2006-03-07 10:20:52 +00:00
dimitr
5ac952b661 There's no need to transform NOT ANY to ALL, as NOT ANY effectively uses indices. 2006-02-15 13:35:53 +00:00
hvlad
a2afa1051e Fixed unregistered bug: AV in request driven by freed cursor
(when request is dropped flag REQ_orphan is set for child requests but
this flag is never checked)
2006-01-27 07:36:17 +00:00
dimitr
a3b2c23aff CREATE VIEW should be aware that a column alias doesn't necessarily mean an expression. 2006-01-26 11:21:12 +00:00
robocop
770fd53775 Fix SF Bug# 1408079 and also the same problem with unterminated comment blocks /* ... 2006-01-25 08:40:39 +00:00