asfernandes
b2fe37a833
Transform two GDML STORE statements that run on database creation time to DSQL statements and preload DSQL cache objects to make that possible
2009-12-26 22:06:24 +00:00
asfernandes
534b8c020e
Misc
2009-12-25 19:29:58 +00:00
robocop
105bb19114
Shortcut.
2009-12-24 12:56:31 +00:00
robocop
cd4c00ab21
Misc.
2009-12-24 10:42:32 +00:00
asfernandes
d3ac9ac6cc
More refactoring: name changes, accessors, consts, removed not good references (statement referencing scratch and metadata indirectly)
2009-12-23 00:57:08 +00:00
asfernandes
8968888820
Getters and setters for DsqlCompiledStatement and consts
2009-12-22 15:36:10 +00:00
asfernandes
dd6331f002
Some fixes; Misc.
2009-12-22 00:08:49 +00:00
asfernandes
7f8f83613d
Just started some separation of concerns
2009-12-21 15:11:57 +00:00
asfernandes
50542e3f00
Make dsql_req::statement constant
2009-12-21 14:56:12 +00:00
asfernandes
985bc2db87
Separate the scratch, statement and request flags. Don't ask me why I didn't change them to bools.
2009-12-20 22:42:43 +00:00
asfernandes
488eb40fe0
Refactor DSQL, continuing the work I started in 2.5:
...
- Renamed CompiledStatement to DsqlCompilerScratch and removed inheritance to dsql_req.
- Introduced DsqlCompilerStatement, moving things from dsql_req - not completelly shareable yet.
- Make dsql_req reference a DsqlCompilerStatement. DsqlCompilerScratch may be discarded in the future.
- Replaced AlterCharSetNode usage by PreparedStatement for the default collation in database creation.
- Changed METD API.
2009-12-20 21:01:10 +00:00
asfernandes
486babc09a
Push more state out of dsql_parameter
2009-12-19 22:52:17 +00:00
asfernandes
c7a3f6f6e1
Separating run state from compiled statements
2009-12-19 21:20:36 +00:00
asfernandes
20ed875d57
Replaced linked list of dsql parameters by array
2009-12-19 18:50:38 +00:00
asfernandes
209b9a688c
Misc
2009-12-19 15:39:23 +00:00
asfernandes
fbcaf72adf
Move and rename methods
2009-12-06 19:11:25 +00:00
asfernandes
7a78601ef2
1) Use metadata character set in DSQL cache
...
2) Make exceptions in metadata charset and convert them to the client charset - this should fix CORE-2431
3) Support for "internal" (engine) DSQL statements and use in COMMENT ON
2009-12-05 14:21:52 +00:00
robocop
f955568fc9
The architect created ODS12 and saw it was good, then he said "thy shall be the only one among your race", dropped the older ones and sent the developers to the four corners of the cyberspace to convert the masses to ODS12.
2009-11-27 02:33:40 +00:00
robocop
47008b1bbb
Misc.
2009-11-17 07:33:39 +00:00
robocop
9c71413426
Style.
2009-11-16 09:18:24 +00:00
verbguy
8192bf7723
fix a bunch of 64-bit sign extension warnings, reported by Sun Studio option, -xport64=implicit
2009-11-04 15:15:57 +00:00
asfernandes
8c6f98e25c
Fixed CORE-2724 - Validate or transform string of DML queries so that engine internals doesn't receive malformed strings
2009-11-01 18:38:16 +00:00
robocop
3c7615230d
Misc.
2009-10-31 08:20:14 +00:00
dimitr
7bdb39e616
Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
...
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:17:49 +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
dimitr
e4791f966e
Optimization for the large number of columns, basically mirroring the one inside var_info().
2009-10-12 06:42:39 +00:00
asfernandes
9b11713517
Fixed the problem reported in fb-devel about wrong "string right truncation" error
2009-09-30 02:16:18 +00:00
asfernandes
f590889311
Fixed CORE-2607 - Introducer (_charset) problems with monitoring and persistent modules
2009-08-30 02:26:50 +00:00
asfernandes
fea56bf058
Misc
2009-08-06 01:06:05 +00:00
robocop
e90fc8d63f
Change the interface again. Please full rebuild (although the many recent changes to common.h almost qualify as full rebuild).
2009-08-05 12:30:32 +00:00
asfernandes
4171c16988
Some things discussed with Dmitry and Claudio - rename the new function to fb_print_blr, use ULONG parameter for blr_length and return int
2009-08-03 15:52:48 +00:00
asfernandes
4759973045
Fixed CORE-2576 - Server may crash parsing wrong or truncated BLR
...
Full rebuild required - CMP_compile2 prototype changed
2009-08-02 04:10:07 +00:00
asfernandes
91dc75000c
Misc
2009-07-14 15:51:41 +00:00
asfernandes
08bc7eaff4
Fixed CORE-2552 - isc_dsql_execute2 does not return errors when called with a non-NULL output SQLDA
2009-07-14 15:49:37 +00:00
robocop
d5635f76aa
Isolate more scrollable cursors code.
2009-07-06 10:43:47 +00:00
asfernandes
928d2616fd
Misc
2009-06-19 02:29:08 +00:00
hvlad
1a202ab6dd
Correct typo
2009-06-18 16:53:00 +00:00
robocop
6bfacad413
CORE-2509. Took the opportunity to fix several data types.
2009-06-18 12:07:07 +00:00
robocop
3343776e96
More unused params.
2009-04-28 14:13:46 +00:00
robocop
888000e21e
Unused function params.
2009-04-26 10:24:44 +00:00
robocop
74537636b9
Comments.
2009-04-18 14:13:26 +00:00
dimitr
ca94ba9d07
Restored the legacy logic that was zapping the output NULL descriptors to mimic some pseudo-empty values.
...
Just for symmetry, unconditionally applied the same logic to inputs (it was there for blobs only).
Finally, do the same in the original place, EXE_assignment(). A more complex original code that tried to care about character sets is removed.
2009-03-03 14:57:53 +00:00
hvlad
026c2412e6
Constness
2009-02-09 15:25:01 +00:00
robocop
a18dc0519f
Misc, style, fixing dangerous warnings, constness, etc.
2009-02-08 11:23:46 +00:00
asfernandes
891845836d
CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions
2009-02-05 14:29:28 +00:00
hvlad
a0ab0d9109
Trace correctly failed SQL statement prepare attempts and SET TRANSACTION statement.
2009-02-02 16:23:05 +00:00
asfernandes
612c108e3e
Misc
2009-02-02 03:35:52 +00:00
hvlad
115602ff06
Trace services support
2009-02-01 22:10:12 +00:00
asfernandes
ced3b0010e
Rollback CORE-2298
2009-01-29 20:36:29 +00:00
asfernandes
3592de2b06
Adjustments related to CORE-2298
2009-01-28 22:04:55 +00:00
asfernandes
9784181a33
Improvement CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions
2009-01-28 21:37:45 +00:00
robocop
8dca837420
Style.
2009-01-06 05:53:34 +00:00
robocop
d11c994960
Style.
2008-12-31 05:06:08 +00:00
asfernandes
8fbf0e8e8c
Remove trailing spaces (.cpp files)
2008-12-05 01:20:14 +00:00
asfernandes
db82e7cd6b
Misc
2008-11-06 00:23:21 +00:00
alexpeshkoff
d8ea120ded
AIX port - use FB_ prefix for alignment constants
2008-11-05 11:26:23 +00:00
asfernandes
2a757281c6
Misc
2008-10-31 00:02:49 +00:00
hvlad
285879c331
Fixed bug CORE-2154 : "request synchronization error" when calling isc_dsql_sql_info with isc_info_sql_records parameter after last record fetched with "execute procedure"
...
Real reason is than engine alllows to fetch from statement with no cursor open. Currently it is forbidden.
2008-10-28 10:50:24 +00:00
robocop
bbc988bd9f
Correction.
2008-10-16 08:51:51 +00:00
dimitr
e6dc2d8f39
Fixed CORE-2115: Query plan is missing for the long query.
...
Some cleanup and misc code refactoring.
2008-10-13 07:23:19 +00:00
asfernandes
51a3f06427
Fixed CORE-2066 - Conversion of SQL_TEXT / SQL_VARCHAR to SQL_TIMESTAMP / SQL_TYPE_TIME / SQL_TYPE_DATE
2008-09-11 15:33:44 +00:00
alexpeshkoff
e392297213
sligtly better places to check for missing SQL operator
2008-09-09 11:11:25 +00:00
alexpeshkoff
79f97a1534
Fixed CORE-1506: Server crash with isc_dsql_execute_immediate and zero length string
2008-09-09 09:26:29 +00:00
alexpeshkoff
13a15d4bfe
1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
...
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
asfernandes
736659c1a1
Misc
2008-08-16 15:42:38 +00:00
alexpeshkoff
1785fb6ee3
fixing CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid
...
finished cleanup of vararg in error diagnostics in DSQL
2008-08-15 11:21:47 +00:00
alexpeshkoff
a2e416210b
Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
...
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
asfernandes
552f58dd48
Misc
2008-06-06 02:25:35 +00:00
robocop
b8ea332022
Misc.
2008-06-05 11:02:42 +00:00
asfernandes
84603f1169
Misc
2008-05-25 01:39:16 +00:00
asfernandes
d4bf9ab246
Split dsql_req into dsql_req and CompiledStatement. This should be my last refactoring to 2.5:
...
- dsql_req becomes a running request;
- CompiledStatement is derived from dsql_req. The compilation state previously in dsql_req comes to here;
- Rename many "request" parameters to "statement" where type is changed from dsql_req to CompiledStatement.
This changes makes easy the path to support compiled statement cache.
2008-05-24 03:19:52 +00:00
asfernandes
e469bd562a
Cleanup on the "proc_flag" logic: store it on the request and changes when necessary.
2008-05-17 16:51:07 +00:00
dimitr
6fbb76c115
Fixed the crash reported privately by Bill Oliver.
2008-04-30 17:45:46 +00:00
robocop
83d3ddd6cb
Replace custom code by helper class ThreadStatusGuard.
2008-04-26 10:29:52 +00:00
asfernandes
d75951e8e5
Misc
2008-04-18 01:37:44 +00:00
asfernandes
a7a7e18220
Fixed the bug reported by Claudio - crash when getting plan of DDL requests
2008-04-16 15:28:16 +00:00
asfernandes
77e97a47c0
Feature requests CORE-1737 and CORE-1803:
...
1) ALTER CHARACTER SET <charset> SET DEFAULT COLLATION <collation>
2) CREATE DATABASE ... [ DEFAULT CHARACTER SET <charset> [ COLLATION <collation> ] ]
2008-04-15 02:18:38 +00:00
robocop
7c4114a7d6
It's harder to fix the assertion than to verify the code.
2008-04-08 06:26:34 +00:00
asfernandes
bc3a7f965d
Comment the new assertions as it's being false when using parameters in isql (UPDATE UserGroup SET ACL = ?) - to be reviewed by Claudio
2008-04-04 00:51:50 +00:00
robocop
49ad645051
A half-backed solution to the const conflict problem. I hope the cure is at least slightly better than the disease.
2008-03-30 09:44:02 +00:00
asfernandes
a6f5327cc8
Fixed EXECUTE STATEMENT returning BLOBs
2008-03-14 15:29:23 +00:00
asfernandes
c7ec88bee4
1) Created classes PreparedStatement and ResultSet
...
2) Changed EXECUTE STATEMENT to use these classes
3) Fixed CORE-1784 - Error with EXECUTE PROCEDURE inside EXECUTE STATEMENT
2008-03-13 16:37:20 +00:00
dimitr
ff090e6a7b
Cleanup.
2008-03-12 16:42:51 +00:00
robocop
2da08d1afc
Cleanup.
2008-03-10 09:32:43 +00:00
robocop
dadefcb479
Binary things are UCHAR. Let's try to fix them from the innermost layer to the outermost layer until we can fix the public interfaces.
2008-03-10 09:31:40 +00:00
asfernandes
74d8711856
Misc
2008-03-08 21:20:26 +00:00
asfernandes
0b6ecafe1b
1) Remove REPLAY_OSRI_API_CALLS_SUBSYSTEM code
...
2) Remove internal y-valve function INTERNAL_COMPILE_REQUEST
3) Go direct to engine internals from DSQL, without need to exit/enter the attachment lock and check exceptions in status vector
2008-03-07 15:23:21 +00:00
robocop
8888ecb544
Let's better use UCHAR for binary streams.
2008-03-04 06:03:34 +00:00
dimitr
c4fbdeddd7
Cleanup.
2008-03-03 14:38:32 +00:00
asfernandes
88b6f39f82
1) Restore logic of not handled exceptions
...
2) Initialize some status vectors
2008-03-03 00:47:04 +00:00
asfernandes
7a2dedaa39
Go direct to engine internals from DSQL, without need to exit/enter the attachment lock - more to follow
2008-03-02 21:16:16 +00:00
robocop
b0d1494539
Cleanup and warning.
2008-03-02 08:40:09 +00:00
asfernandes
2e8bd421dc
Cleanup: do not replicate attachment charset info in DSQL
2008-03-01 19:32:16 +00:00
asfernandes
f49017d2ff
Misc
2008-03-01 15:08:11 +00:00
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
asfernandes
e4303be920
Fix GCC build
2008-02-27 00:09:50 +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