dimitr
45dcb94dab
1) Fixed the crash reported by Alex.
...
2) Cleanup.
2008-02-28 18:16:42 +00:00
dimitr
99caa91b85
DSQL integration into the engine.
2008-02-28 13:48:16 +00:00
robocop
ace4231a87
memcpy instead of custom loop.
2008-02-28 09:28:48 +00:00
asfernandes
4b58bb06f1
Feature CORE-1760 - Support hex numeric and string literals
2008-02-27 16:00:31 +00:00
dimitr
c49845e8c4
Better lock scope.
2008-02-27 12:03:05 +00:00
asfernandes
e4303be920
Fix GCC build
2008-02-27 00:09:50 +00:00
dimitr
6f630d4a2f
Make this code thread-safe and independent from the core DSQL.
2008-02-26 07:12:43 +00:00
asfernandes
312a391d78
Misc
2008-02-26 02:23:28 +00:00
dimitr
c1f75dcdf8
Ported SQLSTATE from Vulcan.
...
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +00:00
asfernandes
1d70a37bcf
Misc
2008-02-22 02:51:37 +00:00
robocop
4cbc8d6a2f
Misc.
2008-02-21 13:11:32 +00:00
dimitr
1cae560ede
Cleanup.
2008-02-20 15:46:13 +00:00
dimitr
0c7959cfd0
Make the mutex protection available for [super-]classic builds.
2008-02-20 15:43:31 +00:00
dimitr
c7db4d6a64
Get rid of DsqlMemoryPool.
2008-02-20 15:24:21 +00:00
asfernandes
1ce834c8dc
Misc
2008-02-14 01:31:15 +00:00
robocop
10d74a7642
Style.
2008-02-13 12:57:04 +00:00
robocop
78ceba6473
Style and deleting extra, unnecessary scope block.
2008-02-13 12:56:32 +00:00
dimitr
f5dce94470
Front-ported the DSQL_unprepare feature from Vulcan.
2008-02-12 17:21:05 +00:00
hvlad
0c51514806
Frontport fix for bug CORE-1724 : Common table expressions cannot be used in computed columns and quantified predicates (IN / ANY / ALL)
2008-02-07 14:10:25 +00:00
asfernandes
01745502a9
Fixed problem when altering non existent database trigger
2008-02-05 14:46:04 +00:00
asfernandes
f19d9ec09b
Improvement CORE-1453 - Allow usage of functions in LIST delimiter parameter
2008-02-05 14:33:42 +00:00
alexpeshkoff
da233e16bf
Fixed error in TCS's DSQL_DOMAIN_01 and PROC_LEVEL0_TESTS_2 - long domain name was silently truncated instead of throwing an error
2008-02-05 11:48:59 +00:00
alexpeshkoff
ee6c433597
Mutexes cleanup:
...
1. Make all firebird mutexes recursive.
2. Enable exceptions to be thrown by mutexes and process them in code where needed.
3. Catch and ignore exceptions in various MutexGuard dtors.
2008-02-05 08:21:18 +00:00
asfernandes
6dd361603f
Misc
2008-02-04 17:01:36 +00:00
dimitr
b4db26c7d7
Cleanup and refactoring.
2008-02-04 12:45:00 +00:00
asfernandes
607ef7d9fa
Encapsulate the parser and make it thread safe
2008-02-03 19:16:12 +00:00
asfernandes
17136a1bc2
Protect DSQL_failures
2008-02-03 14:27:13 +00:00
robocop
fbdc3dbb2b
Style, constness and macro cleanup.
2008-02-03 11:20:48 +00:00
asfernandes
b39ac40c9d
Misc
2008-02-03 02:32:39 +00:00
dimitr
36ef0f6fc9
Misc.
2008-02-02 23:48:48 +00:00
alexpeshkoff
8bdc06af57
Do not hold mutex more then needed
2008-02-02 17:42:32 +00:00
dimitr
bacf986c78
Fix for an issue spotted by Claudio in fb-devel.
2008-02-02 12:21:48 +00:00
asfernandes
ed51d0728b
DSQL sync. changes
2008-02-01 20:18:11 +00:00
asfernandes
f82ea85c3c
Misc
2008-01-29 02:28:06 +00:00
dimitr
132176a475
Major synchronization changes. Description of the commit will be posted to fb-devel.
2008-01-26 12:52:51 +00:00
alexpeshkoff
39896cb955
Fixed CORE-1671: atexit() calls in client libraries cause segfaults
...
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory
To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.
Also some related cleanup.
2008-01-23 15:52:40 +00:00
asfernandes
05b90fa684
Eliminate some warnings
2008-01-16 14:37:26 +00:00
dimitr
74e8bba437
The merge is being fixed.
2008-01-16 11:51:42 +00:00
dimitr
eac5ac337b
The merge continued.
2008-01-16 06:52:43 +00:00
alexpeshkoff
0a1e5de41c
Applied patch from Dmitry Kovalenko - some constness in DSQL
2007-12-11 15:17:35 +00:00
asfernandes
ad13b126d1
Misc
2007-11-30 00:35:44 +00:00
hvlad
c2800e66e8
Implement CORE-1625 : Implement new setting to relax strict SQL standard's alias checking rules
2007-11-29 17:53:38 +00:00
asfernandes
d8ab6f4b23
Fixed CORE-1624 - MERGE not correctly worked with parameters in MATCHING clause
2007-11-29 15:15:23 +00:00
asfernandes
4e426d0739
Commit forgotten change
2007-11-26 09:57:19 +00:00
hvlad
2b47bbe55b
Revert files back after wrong commit
2007-11-19 00:21:18 +00:00
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