alexpeshkoff
00971c3941
Changes in IUtl, suggested by Adriano & Dmitry
2014-01-20 14:36:08 +00:00
asfernandes
48ea42f1c0
Misc.
2014-01-19 20:38:16 +00:00
asfernandes
8e932b1809
Misc. and fixes.
2014-01-17 15:05:19 +00:00
alexpeshkoff
411c3718ca
Fixed CORE-4286: "Statement already has a cursor assigned" error when trying to execute another SQL statement using different cursor name. Moved method setCursorName() from IStatement to IResultSet - it was my fault when splitting cursor from statement.
2014-01-17 12:33:23 +00:00
alexpeshkoff
1f19455043
Fixed posix build
2014-01-16 13:07:01 +00:00
hvlad
ac9e180d73
Adjusted MSVC10 build.
2014-01-16 11:41:46 +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
alexpeshkoff
818bbdc124
Avoid incorrect error reporting when legacy BLOB cursor is closed
2014-01-09 15:56:24 +00:00
dimitr
f3b8f38c22
Restored the error reporting for the already closed cursor.
2014-01-06 08:03:14 +00:00
asfernandes
0ec5daac05
Misc.
2014-01-06 00:51:37 +00:00
dimitr
adef7226a0
Fixed CORE-4313: Error "Attempt to reopen an open cursor" may be raised if the query handle is reused in a different transaction.
2014-01-05 16:25:12 +00:00
robocop
2810026363
Misc and warnings.
2013-12-29 00:35:50 +00:00
alexpeshkoff
64b4f89d43
Changed syntax of user definition operators according to discussion in devel
...
Added virtual table sec$user_attributes with parsed user's attributes
Implemented CORE-2004: Ability to alter user inactive/active
Implemented CORE-2063: Added CREATE OR ALTER USER operator
Implemented CORE-3931: Ability to set comment for the user
2013-12-17 14:20:25 +00:00
asfernandes
9c9dd72977
Misc.
2013-11-24 03:21:11 +00:00
alexpeshkoff
2ab67b56de
Fixed CORE-4178: New API should return proper metadata properties, not the historical artifacts
2013-11-22 06:42:40 +00:00
asfernandes
d543daf51a
Misc.
2013-11-21 01:17:08 +00:00
alexpeshkoff
d6297bebd4
Fixed some gcc warnings
2013-11-19 13:19:11 +00:00
alexpeshkoff
83db69c849
Fixed new gcc 4.7 warning "deleting object of polymorphic class" in many places. Adjusted use of interface types (reference counted vs just vesrioned). Avoided some hacks caused by badly chosen interface type.
2013-11-18 12:20:23 +00:00
alexpeshkoff
120b10a78a
Implemented CORE-4263: Database linger
2013-11-14 16:16:24 +00:00
alexpeshkoff
9dbdab9d28
Enhanced diags for unprepared statement
2013-11-05 11:54:06 +00:00
alexpeshkoff
3d11a469dc
Cleanup - we anyway do not support protocol to talk to ancient servers
2013-10-28 11:50:48 +00:00
alexpeshkoff
de258c2844
Convert legacy auth server to non-builtin plugin on posix
2013-10-28 10:27:40 +00:00
alexpeshkoff
5a054cca16
Fix found by Jim Starkey man-in-themiddle attack on ATTACH packet.
...
That packet may contain database name, command line for service and/or some other important and critical information.
To avoid such attack wire encryption is started before attaching database or service manager, right after connect.
Also should fix a number of issues found in Alpha1 regarding services attach.
2013-10-16 12:53:04 +00:00
alexpeshkoff
18d66a33b4
Cleanup - avoid unneeded generate's argument in SortedArray and Hash
2013-09-24 08:46:10 +00:00
alexpeshkoff
a8f8465366
Postfix for CORE-3935 & CORE-3944: helps avoid segfaults/deadlocks when shutting down firebird
2013-08-16 12:44:10 +00:00
alexpeshkoff
26967b5b5a
Make fb_shutdown() automatically invoked in any OS - to be checked by Vlad
2013-07-22 12:27:52 +00:00
alexpeshkoff
9f3a3be189
Fixed segfault when releasing IMessageMetadata, reported by Dmitry privately. It was bad idea to return to the user interface created by plugin.
2013-07-19 13:51:54 +00:00
alexpeshkoff
7583535db5
Make dialect 3 default when creating database using OO API. Keep legacy behavior in ISC API.
2013-06-24 12:24:29 +00:00
alexpeshkoff
808271e1bf
Do not use as GlobalPtr class with ctor which needs context pool (i.e. TLS object)
2013-06-06 12:29:04 +00:00
robocop
c0b8b68777
Misc.
2013-05-21 21:53:39 +00:00
alexpeshkoff
b9a96911ca
Avoid extra atomic operations when assigning pointer to the object with pre-incremented counter (like returned from the function) to reference-counted pointer holder
2013-04-17 11:16:06 +00:00
dimitr
551e2416c6
Add interface support for scrollable DSQL cursors. Implementation will follow later.
2013-04-13 07:11:58 +00:00
alexpeshkoff
bd40a0b769
Fixed regression, found by Adriano - fbtcs does not work
2013-04-11 11:40:23 +00:00
alexpeshkoff
b3c33aeeb6
Renamed aliases.conf to databases.conf as suggested by Dmitry
2013-04-08 16:28:05 +00:00
alexpeshkoff
8780552b94
Added support for changing configuration (client and embedded) from API
2013-04-04 13:17:57 +00:00
alexpeshkoff
6a48bd8e14
Fixed problems when config file is missing
...
Make config manager and it's external interfaces work with 64-bit integers
Added support for boolean values (like 'true' & 'yes') to external config interfaces
Added support for kmg multipliers to config manager
2013-03-28 13:43:18 +00:00
alexpeshkoff
445bd69d9f
Fixed CORE-3269: When server gets unavailbale, client does not perform detach correctly
2013-03-22 14:29:51 +00:00
alexpeshkoff
afa0770781
1. Fixed broken by me a few time ago server shutdown.
...
2. Implemented prototype of TLS-based debugging helper holding information about 'What does firebird do now?"
Currently it's more or less ready for use with JAttachment::release().
2013-03-15 16:37:32 +00:00
dimitr
86f4b02ef3
1) Cleanup and renaming in the SCL code.
...
2) Reimplemented the USAGE privilege as a separate one.
3) Added USAGE permission checks for generators/sequences and exceptions.
4) Supported USAGE in GRANT/REVOKE for all object types.
5) Refactored SET GENERATOR and ALTER SEQUENCE as true DDL. blr_set_generator is supported only for backward compatibility, it's not generated by DSQL anymore.
6) Added START WITH clause for [RE]CREATE SEQUENCE and CREATE OR ALTER SEQUENCE.
7) Fixed a number of related errors.
2013-03-07 13:59:03 +00:00
asfernandes
0d299d455a
Remove FbMessage struct from the API.
...
This struct lost its main value (group various blr-related properties in a single parameter).
And since openCursor/fetch already split the message/buffer, it does not make sense anymore to have it.
2013-02-26 03:42:19 +00:00
asfernandes
53d4d58113
Change message buffers type to void*. It adds some casts, but avoid them in users' code.
2013-02-23 03:09:17 +00:00
alexpeshkoff
5ecced8462
Better names for statement's flags
2013-02-22 07:24:46 +00:00
alexpeshkoff
1f4da1a533
More on IMetadataBuilder
2013-02-22 07:01:00 +00:00
asfernandes
1d1f81bdc9
Replaced ICoerceMetadata with IMetadataBuilder and add a builder creator method in IMaster.
...
This change is to make applications who define they own message format (without metadata inspection and coercion) to easily create its IMessageMetadata.
2013-02-20 19:41:01 +00:00
alexpeshkoff
ba9413b26a
Add IStatement::getFlags() to help user make a solution what to do with SQL statement
2013-02-19 11:20:49 +00:00
asfernandes
ba09d5262f
Misc.
2013-02-18 15:28:50 +00:00
alexpeshkoff
fc12495d0e
Modified IStatement interface in our API:
...
1. Never allocate empty statement - always use att->prepare() to create statement interface
2. Separated IStatement into 2 parts - statement itself and resultset.
3. Added stmt->openCursor() (and att->openCursor() for unprepared statements) to create IResultSet.
4. Always use IMessageMetadata (former IParametersMetadata) to pass message fromat info from client,
therefore avoiding need in BLR generation in client applications.
2013-02-17 12:08:53 +00:00
asfernandes
491fdd82b2
Unifying the external engines API with the new ones.
2013-02-15 02:48:54 +00:00
asfernandes
970677e8de
Get rid of dsql_str and fix metadata strings.
2012-12-25 17:34:50 +00:00
alexpeshkoff
b3f9759960
Take locks in AST before building tdbb
...
Fixed assertion in CCH_exclusive_attachment
Rolled back my changes required to let cancelOperation() enter engine after shutdown
Better locks' history in SyncObject
2012-12-18 13:54:18 +00:00
alexpeshkoff
c7454a49a5
Work in progress (committed due to SF upgrade). Checked only on SS.
...
1. Frontported fix for CORE-3935 and CORE-3993.
2. Added debugging support for mutexes and rwlocks in Vulcan style.
Unfortunately after last 'svn up' build asserts in JrdStatement:71.
2012-12-14 17:59:02 +00:00
alexpeshkoff
6e6746b63c
Darwin port
2012-12-13 14:40:20 +00:00
alexpeshkoff
4ca6e669fe
1. Fixed CORE-3786: Firebird 2.5.1 Hangs on MacOSX 10.7 (Lion) on DB create after reboot.
...
2. Cleanup: avoid functional style in stuff exception.
2012-11-01 11:40:18 +00:00
asfernandes
22fef2016a
Feature CORE-3291 - New pseudocolumn to get number of transaction that created this record version.
2012-08-28 01:02:56 +00:00
asfernandes
b31f4d9b94
Frontport UUID fixes (CORE-3238 and CORE-3887).
2012-07-11 01:56:37 +00:00
alexpeshkoff
9bf5e60dfa
Anti isc_random pass
2012-06-29 12:44:41 +00:00
alexpeshkoff
0fc893a4e1
Better names for API functions
2012-06-26 13:43:26 +00:00
alexpeshkoff
b91c68bb30
Cross-build support + android port: work in progress, currently can build fbclient for android
2012-06-22 11:39:24 +00:00
asfernandes
cf6e699698
Misc.
2012-06-03 15:43:59 +00:00
alexpeshkoff
2a01e4bcf9
Implemented CORE-3861: Make it possible to encrypt database
...
Also some cleanups, the most important are:
- meaningful ctor on Jrd::Lock, helping to avoid code dup
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +00:00
robocop
844b15bd13
Misc and style.
2012-05-20 10:00:52 +00:00
robocop
b7d62c2d26
Misc.
2012-04-10 01:46:14 +00:00
hvlad
453e9d9ae1
Correct reference counting for log writer in trace plugin.
...
Also fixed few AVs.
2012-03-30 13:52:11 +00:00
robocop
1d279d64ed
I couldn't compile so I did this little change to the function declaration.
2012-03-24 21:46:37 +00:00
alexpeshkoff
4791e63ce2
MAC port. Also cleaned up one related place, where names of struct and variable were same (bstream)
2012-03-23 14:06:14 +00:00
asfernandes
f3ee441533
Misc.
2012-03-17 15:35:53 +00:00
alexpeshkoff
e92f494e72
Finished with conversions of all strings in both kinds of SPBs (attach/start) to UTF8
2012-03-16 17:10:31 +00:00
alexpeshkoff
e0eda0c873
Fixed use of UTF8 strings in services
2012-03-15 15:05:31 +00:00
alexpeshkoff
2f7c526728
Implemented CORE-3788: Make all utilities follow same rules when expanding database name
2012-03-14 08:46:27 +00:00
alexpeshkoff
cd88decf37
Avoid code duplication in yvalve. Always store expanded filename in YAttachment.
2012-03-11 15:32:58 +00:00
alexpeshkoff
d0cb084f32
Fixed my old error done when applying providers interface in yValve
2012-03-11 15:17:19 +00:00
asfernandes
1758b1fdbe
Misc.
2012-03-10 15:37:52 +00:00
alexpeshkoff
61bee1449c
Make createDatabase() work with config and national characters like attachDatabase()
2012-03-07 15:20:37 +00:00
alexpeshkoff
6c3dd9da4a
Mac port
2012-03-06 13:29:28 +00:00
alexpeshkoff
b9ba7ea5b9
Restored old filename expansion logic in createDatabase()
2012-03-06 13:25:20 +00:00
alexpeshkoff
a9d97056ce
Mac port
2012-03-06 11:31:56 +00:00
alexpeshkoff
45b31d6e4b
Fixed hang in shutdown
2012-03-02 15:38:24 +00:00
hvlad
52f3ed895e
Fixed Windows build
2012-03-01 18:18:46 +00:00
hvlad
4041b0e780
Undo part of previous commit: it is not good to make internal type (ThreadId) as public
2012-03-01 15:42:24 +00:00
hvlad
adf02dd070
Misc
2012-03-01 15:27:23 +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
alexpeshkoff
c881c9bc6c
Always define appropriate macro before including pthread.h
2012-02-29 07:08:01 +00:00
alexpeshkoff
e3866b85b3
Fixed broken multi DB transaction - thanks to Adriano
2012-02-27 16:09:40 +00:00
asfernandes
435666cea5
Misc.
2012-02-26 14:27:27 +00:00
asfernandes
1198014fcf
Renamed error constant/message by Alex request.
2012-02-25 13:55:04 +00:00
alexpeshkoff
488bd238c2
Fixed races in YValve
2012-02-24 12:25:26 +00:00
alexpeshkoff
8f9370ecda
Minor debugging enhancement - makes it possible to watch name in dtor
2012-02-24 12:24:39 +00:00
asfernandes
0437488857
Misc.
2012-02-05 14:46:03 +00:00
asfernandes
27bb1f8bc1
1) Removed READ/WRITE BLOB sql commands. 2) Refactored request operations to fix server crashes.
2012-02-03 19:01:36 +00:00
robocop
21cd78a0fd
Cleanup: unused functions, parameters & variables.
2012-01-24 03:37:43 +00:00
alexpeshkoff
4a852536ab
Fixed segfault in case of error in queEvents()
2012-01-16 14:30:47 +00:00
alexpeshkoff
db80e18dc7
Fixed CORE-3658: FBSVCMGR connects to server as OS user name rather than value of ISC_USER environment variable
2011-12-30 14:11:24 +00:00
alexpeshkoff
e3f9db44cd
Front-ported fix for CORE-3646: Segmentation fault in Linux
2011-12-29 17:48:59 +00:00
alexpeshkoff
1a4b65f4c2
Fixed overloaded virtual function error - thanks to Adriano
2011-12-26 10:05:29 +00:00
alexpeshkoff
7fb8ebd3a9
Fixed CORE-1898: Increase the password length from 8 characters, CORE-3372: Simplify process of non-default security database creation
2011-12-23 12:43:58 +00:00
asfernandes
1bb24e6c08
Fixed CORE-3238 - Makes GEN_UUID return a compliant RFC-4122 binary UUID and introduce CHAR_TO_UUID2 and UUID_TO_CHAR2 to convert UUIDs from/to string also complying with the RFC.
2011-12-20 14:30:41 +00:00
asfernandes
906ea4729e
Misc.
2011-10-27 01:04:14 +00:00
asfernandes
cea1efd81b
Feature CORE-3620 - Window function LAST_VALUE.
...
Feature CORE-3621 - Window function NTH_VALUE.
2011-10-25 15:04:17 +00:00
alexpeshkoff
69d29c3cf1
Diag
2011-10-25 08:45:39 +00:00
asfernandes
10496876fb
Feature CORE-3619 - Windows function FIRST_VALUE.
2011-10-23 21:27:55 +00:00