asfernandes
56400c594a
Rename methods to match error constants as per Claudio request.
2011-11-10 14:35:40 +00:00
asfernandes
906ea4729e
Misc.
2011-10-27 01:04:14 +00:00
asfernandes
372d48c97b
Improvement CORE-3639 - Allow the use of multiple WHEN MATCHED / NOT MATCHED clauses in MERGE, as per the SQL 2008 specification.
...
Also updated MERGE and RETURNING docs, and fixed a bug with MERGE WHEN MATCHED DELETE and RETURNING.
2011-10-23 01:31:11 +00:00
asfernandes
c627005a89
Feature CORE-3626 - Subfunctions in PSQL and EXECUTE BLOCK.
...
Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBFUNC_1.output .
Also did:
- Refactor to share more code/data between procedures and functions.
- Fixed some PSQL functions problems.
2011-10-16 20:36:07 +00:00
asfernandes
c9a5a513d0
Mark sub procedure scratch as a procedure.
2011-10-03 15:52:14 +00:00
asfernandes
5ae632cf0b
Feature CORE-1288 - Sub Procedures.
...
They're very simple for now. No access to parent variables nor to call neighbour procedures.
Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBPROC_1.output .
2011-10-02 22:11:41 +00:00
asfernandes
65ec2b5151
Fixed the padding of external procedure messages. Also removed obsolete checks in the touched code.
2011-08-28 18:31:44 +00:00
asfernandes
93aa34bddb
Fixed the INSERT INTO ... SELECT bug reported by Ivan Prenosil in fb-devel.
2011-07-25 01:40:29 +00:00
dimitr
8f517dcbeb
One more part of the fix for CORE-3340.
2011-04-05 05:49:40 +00:00
asfernandes
03ce334e2b
Misc
2011-04-04 13:37:47 +00:00
robocop
ddef541fc9
Misc, style, etc.
2011-04-02 04:51:27 +00:00
asfernandes
c977df2141
Fixed CORE-3421 - AV with "UPDATE OR INSERT".
2011-03-31 14:26:59 +00:00
asfernandes
d67b091ee5
Misc
2011-03-11 00:58:55 +00:00
hvlad
60dc5dd571
Additional patch for CORE-3362 : Cursors should ignore changes made by the same statement
...
Better (i hope) fix for implicit cursors stability in PSQL
2011-03-08 09:05:28 +00:00
asfernandes
9dd82235f7
Replace some nod_list by array of nodes and change implementation of nod_returning to ReturningClause.
2011-03-07 03:15:07 +00:00
asfernandes
604bb0d769
Misc
2011-03-06 17:18:04 +00:00
asfernandes
5ffa89e0c7
Reference DML statements in DSQL with StmtNode instead of dsql_nod.
2011-03-06 02:48:34 +00:00
dimitr
d68affa114
More complex fix for CORE-3374: Server may crash or corrupt data if SELECT WITH LOCK is issued against records not in the latest format. It involves upgrading the record to the current format, like UPDATE does.
2011-03-05 17:33:01 +00:00
asfernandes
8d6c054d87
Refactored nod_src_info.
2011-03-05 02:47:22 +00:00
asfernandes
1c6e990926
Refactor DSQL INSERT, UPDATE, DELETE, MERGE, UPDATE OR INSERT and assignment statements.
2011-03-04 01:47:49 +00:00
hvlad
69df3d720f
Additional patch for CORE-3362 : Cursors should ignore changes made by the same statement
...
Statements with more that one cursors should not create savepoint for the first cursor
2011-03-02 09:43:13 +00:00
hvlad
4cb57947fd
Additional patch for CORE-3362 : Cursors should ignore changes made by the same statement
2011-02-28 10:11:37 +00:00
asfernandes
0e58483989
Refactor nod_cursor.
2011-02-26 21:51:45 +00:00
asfernandes
74a6076b50
Replace some blr_block by blr_begin, as before.
2011-02-26 01:10:26 +00:00
asfernandes
2096bd7239
Refactor DSQL exceptions: nod_on_error, nod_sqlcode, nod_gdscode, nod_exception and nod_default.
2011-02-25 02:52:51 +00:00
asfernandes
0ab05bd41c
Refactor nod_start_savepoint and nod_end_savepoint.
2011-02-22 16:06:08 +00:00
asfernandes
dca1961a82
Refactor nod_while.
2011-02-22 15:30:06 +00:00
asfernandes
db4390bf9f
Refactor SET GENERATOR / ALTER SEQUENCE.
2011-02-22 01:57:51 +00:00
asfernandes
0a6e338392
Refactoring nod_list and nod_block statements.
2011-02-22 00:51:56 +00:00
dimitr
7a405a4eea
Fixed CORE-3058: New generators are created with wrong value when more than 32K generators was previously created.
2011-02-17 06:05:16 +00:00
asfernandes
305b989cf8
Fixed hang found with CORE-3340 test-case.
2011-02-09 21:26:18 +00:00
dimitr
679367a35f
Misc.
2011-02-09 10:57:32 +00:00
asfernandes
1388655673
Fixed CORE-3255 - The server could crash using views with GROUP BY.
2011-02-06 21:59:20 +00:00
asfernandes
bf77761d84
Fixed CORE-3310 - RDB$GET_CONTEXT and between in view.
...
Fixed CORE-3338 - Some expression indexes with COALESCE, CASE and DECODE became inoperant.
Removed DSQL hidden variables expressions.
Refactored COALESCE, DECODE and (simple) CASE, using new BLR verbs.
Fixed v3 regression with UPDATE OR INSERT inside PROCEDURE/FUNCTION.
Fixed assert with DECODE/CASE with only test parameters and no values.
2011-02-06 18:13:12 +00:00
asfernandes
b0f702e7bd
Another small refactor on variables in DSQL.
2011-01-31 14:47:41 +00:00
asfernandes
d7d3c4d8ab
Refactor internals of DSQL variables.
2011-01-31 00:13:15 +00:00
asfernandes
ccaaca7c72
Misc
2011-01-29 17:24:29 +00:00
dimitr
d037cc2ef0
More work on enlarging the message buffers. To be continued.
2011-01-28 18:51:23 +00:00
dimitr
e0f5a68da0
More work on enlarging the message buffers. To be continued.
2011-01-28 18:50:27 +00:00
asfernandes
23ae9f62e8
Refactor DSQL's BREAK, LEAVE and CONTINUE.
2011-01-22 21:32:29 +00:00
asfernandes
ffb28dfc3d
Misc
2011-01-22 17:15:52 +00:00
alexpeshkoff
fc41c54a62
warnings
2011-01-21 17:16:13 +00:00
hvlad
8e4755b20f
Front ported fix for bug CORE-3282 : EXECUTE STATEMENT parses the SQL text using wrong charset
2011-01-21 10:03:17 +00:00
asfernandes
123aa675ab
Refactor nod_aggregate, nod_relation, nod_rse, nod_derived_table, nod_query_spec and nod_limit
2011-01-09 21:58:56 +00:00
asfernandes
0b1fa97b4a
Refactored the DSQL support of cursor statements, execute procedure and execute statement
2010-12-23 18:42:06 +00:00
asfernandes
c268c1f25c
Fixed CORE-2204 - Constraints on SP output parameters are checked even when the SP returns zero rows
2010-12-05 16:49:24 +00:00
asfernandes
5e95a16141
Use the impure space of string variable in a consistently (first or subsequent request execution) and optimized (no double allocation) way
2010-12-05 14:44:28 +00:00
asfernandes
83d74dc2b4
Rework on line/column info support to make it faster
2010-12-05 00:55:54 +00:00
asfernandes
9c42d4e5af
Finish the statements refactor in the engine. Get rid of jrd_nod.
2010-12-04 22:15:03 +00:00
asfernandes
bcbc1ed46e
Move some previously static functions to StmtNodes.cpp
2010-11-29 14:54:07 +00:00