Backported fix for CORE-3320 - Some MERGE syntax can crash the server.


git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52232 65644016-39b1-43b1-bf79-96bc8fe82c15
Backport fix for bug CORE-3095 : Client receive event's with count equal to 1 despite of how many times EVENT was POSTed in same transaction

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52237 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52241 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52247 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-3245: SUBSTRING on long blobs truncates result to 32767 if third argument not present.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52260 65644016-39b1-43b1-bf79-96bc8fe82c15
Simplified and sub-optimal fix (without hidden variables) for CORE-3296: Error "context already in use" for the simple case function with a sub-select operand.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52274 65644016-39b1-43b1-bf79-96bc8fe82c15
Removed the supposedly wrong checkout (it was added in v2.0), as theoretically it can lead to race conditions in the page cache.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52281 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52288 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-3335: Wrong results (internal wrapping occured) for the multi-byte blob SUBSTRING function and its boundary arguments.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52292 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52301 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-3138: Internal error or crash occurs when accessing any MON$ table after altering its structure.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52354 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52362 65644016-39b1-43b1-bf79-96bc8fe82c15
Reworked my yesterday's fix to simplify it.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52368 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed bug CORE-3351 : Windows client could put 10054 error messages into firebird.log at connection time

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52372 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52378 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed CORE-3353: Predicate (blob_field LIKE ?) describes the parameter as VARCHAR(30) rather than as BLOB.
Also, let's never transfer the CS_dynamic pseudo-charset to the client side.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52385 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed inability to execute LIKE/STARTING/etc if the second argument is a small (<32KB) blob and the first one is a blob of charset NONE. This is partially related to CORE-3233, see my comment there.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52389 65644016-39b1-43b1-bf79-96bc8fe82c15
Make sure at least one operand is widened before the multiplication.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52392 65644016-39b1-43b1-bf79-96bc8fe82c15
nightly update

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52395 65644016-39b1-43b1-bf79-96bc8fe82c15
Fixed the main reason for CORE-3233: LIKE, STARTING and CONTAINING fail if second operand >= 32K. Thanks to Adriano.

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_1_Release@52401 65644016-39b1-43b1-bf79-96bc8fe82c15