| 
     
      
      
      From: <asf...@us...> - 2015-04-05 02:24:48
       
   | 
Revision: 61241
          http://sourceforge.net/p/firebird/code/61241
Author:   asfernandes
Date:     2015-04-05 02:24:40 +0000 (Sun, 05 Apr 2015)
Log Message:
-----------
Fixed CORE-4733 - Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR.
Modified Paths:
--------------
    firebird/trunk/doc/WhatsNew
    firebird/trunk/src/dsql/DdlNodes.epp
    firebird/trunk/src/jrd/dfw.epp
    firebird/trunk/src/jrd/vio.cpp
Modified: firebird/trunk/doc/WhatsNew
===================================================================
--- firebird/trunk/doc/WhatsNew	2015-04-05 02:24:26 UTC (rev 61240)
+++ firebird/trunk/doc/WhatsNew	2015-04-05 02:24:40 UTC (rev 61241)
@@ -2,6 +2,11 @@
   * v3.0 Beta 2
   *************
 
+    * Bugfix CORE-4733
+        Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR
+      Contributor(s):
+        Adriano dos Santos Fernandes <adrianosf at gmail.com>
+
     * Bugfix CORE-4713
         "BLOB not found" error at rollback after insert into table with expression index
       Contributor(s):
Modified: firebird/trunk/src/dsql/DdlNodes.epp
===================================================================
--- firebird/trunk/src/dsql/DdlNodes.epp	2015-04-05 02:24:26 UTC (rev 61240)
+++ firebird/trunk/src/dsql/DdlNodes.epp	2015-04-05 02:24:40 UTC (rev 61241)
@@ -4420,6 +4420,33 @@
 		}
 		break;
 
+	case blr_bool:
+		switch (newFld.dyn_dtype)
+		{
+		case blr_bool:
+			break;
+
+		/*** ASF: I'm not yet sure about this, and it is not working internally.
+		// If the original field is a boolean field and the new field is a character field,
+		// is there enough space in the new field?
+		case blr_text:
+		case blr_varying:
+		case blr_cstring:
+			if (newFld.dyn_charlen < origLen)
+			{
+				// msg 208: New size specified for column %s must be at least %d characters.
+				errorCode = isc_dyn_char_fld_too_small;
+			}
+			break;
+		***/
+
+		default:
+			// Cannot change datatype for column %s.  Conversion from base type %s to base type %s is not supported.
+			errorCode = isc_dyn_invalid_dtype_conversion;
+			break;
+		}
+		break;
+
 	default:
 		fb_assert(FALSE);
 		errorCode = ENCODE_ISC_MSG(87, DYN_MSG_FAC);				// MODIFY RDB$FIELDS FAILED
Modified: firebird/trunk/src/jrd/dfw.epp
===================================================================
--- firebird/trunk/src/jrd/dfw.epp	2015-04-05 02:24:26 UTC (rev 61240)
+++ firebird/trunk/src/jrd/dfw.epp	2015-04-05 02:24:40 UTC (rev 61241)
@@ -2148,6 +2148,7 @@
 
 	SET_TDBB(tdbb);
 
+	Jrd::Attachment* attachment = tdbb->getAttachment();
 	Lock* relationLock = NULL;
 	bool releaseRelationLock = false;
 
@@ -2160,15 +2161,33 @@
 	case 3:
 		try
 		{
-			SortedArray<int>& fields = work->dfw_ids;
-
 			jrd_rel* relation = MET_lookup_relation(tdbb, work->dfw_name);
-			if (relation->rel_view_rse || fields.isEmpty())
+			if (relation->rel_view_rse || work->dfw_ids.isEmpty())
 				break;
 
 			// Protect relation from modification
 			relationLock = protect_relation(tdbb, transaction, relation, releaseRelationLock);
 
+			SortedArray<int> fields;
+			AutoRequest handle;
+
+			for (SortedArray<int>::iterator itr(work->dfw_ids.begin());
+				 itr != work->dfw_ids.end();
+				 ++itr)
+			{
+				FOR(REQUEST_HANDLE handle)
+					RFL IN RDB$RELATION_FIELDS CROSS
+					FLD IN RDB$FIELDS
+					WITH RFL.RDB$RELATION_NAME EQ work->dfw_name.c_str() AND
+						 FLD.RDB$FIELD_NAME EQ RFL.RDB$FIELD_SOURCE AND
+						 RFL.RDB$FIELD_ID EQ *itr AND
+						 (RFL.RDB$NULL_FLAG = TRUE OR FLD.RDB$NULL_FLAG = TRUE)
+				{
+					fields.add(RFL.RDB$FIELD_ID);
+				}
+				END_FOR
+			}
+
 			UCharBuffer blr;
 
 			blr.add(blr_version5);
Modified: firebird/trunk/src/jrd/vio.cpp
===================================================================
--- firebird/trunk/src/jrd/vio.cpp	2015-04-05 02:24:26 UTC (rev 61240)
+++ firebird/trunk/src/jrd/vio.cpp	2015-04-05 02:24:40 UTC (rev 61241)
@@ -2567,20 +2567,28 @@
 				check_class(tdbb, transaction, org_rpb, new_rpb, f_rfr_class);
 
 				bool rc1 = EVL_field(NULL, org_rpb->rpb_record, f_rfr_null_flag, &desc1);
-				bool rc2 = EVL_field(NULL, new_rpb->rpb_record, f_rfr_null_flag, &desc2);
 
-				if ((!rc1 || MOV_get_long(&desc1, 0) == 0) && rc2 && MOV_get_long(&desc2, 0) != 0)
+				if ((!rc1 || MOV_get_long(&desc1, 0) == 0))
 				{
-					EVL_field(0, new_rpb->rpb_record, f_rfr_rname, &desc1);
-					EVL_field(0, new_rpb->rpb_record, f_rfr_id, &desc2);
+					dsc desc3, desc4;
+					bool rc2 = EVL_field(NULL, new_rpb->rpb_record, f_rfr_null_flag, &desc2);
+					bool rc3 = EVL_field(NULL, org_rpb->rpb_record, f_rfr_sname, &desc3);
+					bool rc4 = EVL_field(NULL, new_rpb->rpb_record, f_rfr_sname, &desc4);
 
-					DeferredWork* work = DFW_post_work(transaction, dfw_check_not_null, &desc1, 0);
-					SortedArray<int>& ids = DFW_get_ids(work);
+					if ((rc2 && MOV_get_long(&desc2, 0) != 0) ||
+						(rc3 && rc4 && MOV_compare(&desc3, &desc4) != 0))
+					{
+						EVL_field(0, new_rpb->rpb_record, f_rfr_rname, &desc1);
+						EVL_field(0, new_rpb->rpb_record, f_rfr_id, &desc2);
 
-					int id = MOV_get_long(&desc2, 0);
-					FB_SIZE_T pos;
-					if (!ids.find(id, pos))
-						ids.insert(pos, id);
+						DeferredWork* work = DFW_post_work(transaction, dfw_check_not_null, &desc1, 0);
+						SortedArray<int>& ids = DFW_get_ids(work);
+
+						int id = MOV_get_long(&desc2, 0);
+						FB_SIZE_T pos;
+						if (!ids.find(id, pos))
+							ids.insert(pos, id);
+					}
 				}
 			}
 			break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-06 00:13:13
       
   | 
Revision: 61242
          http://sourceforge.net/p/firebird/code/61242
Author:   firebirds
Date:     2015-04-06 00:13:06 +0000 (Mon, 06 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-05 02:24:40 UTC (rev 61241)
+++ firebird/trunk/ChangeLog	2015-04-06 00:13:06 UTC (rev 61242)
@@ -1,3 +1,15 @@
+ 2015-04-05 02:24  asfernandes 
+   M doc/WhatsNew
+   M src/dsql/DdlNodes.epp
+   M src/jrd/dfw.epp
+   M src/jrd/vio.cpp
+Fixed CORE-4733 - Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR.
+
+ 2015-04-05 02:24  asfernandes 
+   M src/jrd/dfw.epp
+   M src/jrd/vio.cpp
+Optimize check of column NULLs when changing field or domain to NOT NULL.
+
  2015-04-03 10:25  mapopa 
    D extern/btyacc/makefile.dos
 Dos file not needed
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-05 02:24:40 UTC (rev 61241)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-06 00:13:06 UTC (rev 61242)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31771
+  FORMAL BUILD NUMBER:31773
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31771"
-#define FILE_VER_STRING "WI-T3.0.0.31771"
-#define LICENSE_VER_STRING "WI-T3.0.0.31771"
-#define FILE_VER_NUMBER 3, 0, 0, 31771
+#define PRODUCT_VER_STRING "3.0.0.31773"
+#define FILE_VER_STRING "WI-T3.0.0.31773"
+#define LICENSE_VER_STRING "WI-T3.0.0.31773"
+#define FILE_VER_NUMBER 3, 0, 0, 31773
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31771"
+#define FB_BUILD_NO "31773"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-05 02:24:40 UTC (rev 61241)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-06 00:13:06 UTC (rev 61242)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31771
+BuildNum=31773
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-07 00:09:08
       
   | 
Revision: 61252
          http://sourceforge.net/p/firebird/code/61252
Author:   firebirds
Date:     2015-04-07 00:09:05 +0000 (Tue, 07 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-06 23:21:25 UTC (rev 61251)
+++ firebird/trunk/ChangeLog	2015-04-07 00:09:05 UTC (rev 61252)
@@ -1,3 +1,11 @@
+ 2015-04-06 23:21  asfernandes 
+   M src/jrd/dfw.epp
+Fixed CORE-4738 - Command "Alter table <T> alter <C> type <domain_>" does not work: "BLR syntax error: expected valid BLR code at offset 15, encountered 255" - regression introduced with CORE-4733.
+
+ 2015-04-06 11:12  alexpeshkoff 
+   M src/dsql/DdlNodes.epp
+Fixed a bug noticed by Simonov Denis
+
  2015-04-05 02:24  asfernandes 
    M doc/WhatsNew
    M src/dsql/DdlNodes.epp
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-06 23:21:25 UTC (rev 61251)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-07 00:09:05 UTC (rev 61252)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31773
+  FORMAL BUILD NUMBER:31775
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31773"
-#define FILE_VER_STRING "WI-T3.0.0.31773"
-#define LICENSE_VER_STRING "WI-T3.0.0.31773"
-#define FILE_VER_NUMBER 3, 0, 0, 31773
+#define PRODUCT_VER_STRING "3.0.0.31775"
+#define FILE_VER_STRING "WI-T3.0.0.31775"
+#define LICENSE_VER_STRING "WI-T3.0.0.31775"
+#define FILE_VER_NUMBER 3, 0, 0, 31775
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31773"
+#define FB_BUILD_NO "31775"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-06 23:21:25 UTC (rev 61251)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-07 00:09:05 UTC (rev 61252)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31773
+BuildNum=31775
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <ego...@us...> - 2015-04-07 10:09:07
       
   | 
Revision: 61255
          http://sourceforge.net/p/firebird/code/61255
Author:   egorpugin
Date:     2015-04-07 10:08:58 +0000 (Tue, 07 Apr 2015)
Log Message:
-----------
Add cloop to CMake build.
Modified Paths:
--------------
    firebird/trunk/CMakeLists.txt
    firebird/trunk/builds/cmake/BuildFunctions.cmake
    firebird/trunk/builds/cmake/Configure.cmake
    firebird/trunk/examples/CMakeLists.txt
    firebird/trunk/src/CMakeLists.txt
Modified: firebird/trunk/CMakeLists.txt
===================================================================
--- firebird/trunk/CMakeLists.txt	2015-04-07 03:19:51 UTC (rev 61254)
+++ firebird/trunk/CMakeLists.txt	2015-04-07 10:08:58 UTC (rev 61255)
@@ -324,6 +324,15 @@
 include_directories("${CMAKE_CURRENT_BINARY_DIR}/src/include/gen")
 
 ########################################
+# LIBRARY libtommath
+########################################
+
+file(GLOB libtommath_src "extern/libtommath/*.c" "extern/libtommath/*.h")
+
+add_library             (libtommath ${libtommath_src})
+project_group           (libtommath Extern)
+
+########################################
 # EXECUTABLE btyacc
 ########################################
 
@@ -337,15 +346,14 @@
 
 endif() # if (NOT CMAKE_CROSSCOMPILING)
 
-
 ########################################
-# LIBRARY btyacc
+# EXECUTABLE cloop
 ########################################
 
-file(GLOB libtommath_src "extern/libtommath/*.c" "extern/libtommath/*.h")
+file(GLOB cloop_src "extern/cloop/src/cloop/*.cpp" "extern/cloop/src/cloop/*.h")
 
-add_library             (libtommath ${libtommath_src})
-project_group           (libtommath Extern)
+add_executable          (cloop ${cloop_src})
+project_group           (cloop Extern)
 
 ########################################
 # subdirectories
Modified: firebird/trunk/builds/cmake/BuildFunctions.cmake
===================================================================
--- firebird/trunk/builds/cmake/BuildFunctions.cmake	2015-04-07 03:19:51 UTC (rev 61254)
+++ firebird/trunk/builds/cmake/BuildFunctions.cmake	2015-04-07 10:08:58 UTC (rev 61255)
@@ -1,12 +1,12 @@
-###############################################################################
+################################################################################
 #
 # macros and functions
 #
-###############################################################################
+################################################################################
 
-#######################################
+########################################
 # FUNCTION set_output_directory
-#######################################
+########################################
 function(set_output_directory target dir)
     set(out ${output_dir})
     if (MSVC OR XCODE) # multiconfiguration builds
@@ -31,18 +31,18 @@
     endif()
 endfunction(set_output_directory)
 
-#######################################
+########################################
 # FUNCTION set_output_directory_unix
-#######################################
+########################################
 function(set_output_directory_unix target dir)
     if (UNIX)
         set_output_directory(${target} ${dir} ${ARGN})
     endif()
 endfunction(set_output_directory_unix)
 
-#######################################
+########################################
 # FUNCTION set_exported_symbols
-#######################################
+########################################
 if (WIN32)
     function(set_exported_symbols target filename)
         set(def_file ${filename}.def)
@@ -79,9 +79,9 @@
 endif(UNIX)
 
 
-#######################################
+########################################
 # FUNCTION epp_process
-#######################################
+########################################
 function(epp_process type files)
     set(epp_suffix ".${type}.cpp")
 
@@ -122,9 +122,9 @@
     endforeach()
 endfunction(epp_process)
 
-#######################################
+########################################
 # FUNCTION add_epp_suffix
-#######################################
+########################################
 function(add_epp_suffix files suffix)
     foreach(F ${${files}})
         list(APPEND ${files}_${suffix} ${CMAKE_CURRENT_SOURCE_DIR}/${F})
@@ -134,72 +134,72 @@
     set(${files}_${suffix} ${${files}_${suffix}} PARENT_SCOPE)
 endfunction(add_epp_suffix)
 
-#######################################
+########################################
 # FUNCTION set_win32
-#######################################
+########################################
 function(set_win32 var)
     if (WIN32)
         set(${var} "${ARGN}" PARENT_SCOPE)
     endif()
 endfunction(set_win32)
 
-#######################################
+########################################
 # FUNCTION set_unix
-#######################################
+########################################
 function(set_unix var)
     if (UNIX)
         set(${var} "${ARGN}" PARENT_SCOPE)
     endif()
 endfunction(set_unix)
 
-#######################################
+########################################
 # FUNCTION set_apple
-#######################################
+########################################
 function(set_apple var)
     if (APPLE)
         set(${var} "${ARGN}" PARENT_SCOPE)
     endif()
 endfunction(set_apple)
 
-#######################################
+########################################
 # FUNCTION add_src_win32
-#######################################
+########################################
 function(add_src_win32 var)
     if (WIN32)
         set(${var} ${${var}} ${ARGN} PARENT_SCOPE)
     endif()
 endfunction(add_src_win32)
 
-#######################################
+########################################
 # FUNCTION add_src_unix
-#######################################
+########################################
 function(add_src_unix var)
     if (UNIX)
         set(${var} ${${var}} ${ARGN} PARENT_SCOPE)
     endif()
 endfunction(add_src_unix)
 
-#######################################
+########################################
 # FUNCTION add_src_unix_not_apple
-#######################################
+########################################
 function(add_src_unix_not_apple var)
     if (UNIX AND NOT APPLE)
         set(${var} ${${var}} ${ARGN} PARENT_SCOPE)
     endif()
 endfunction(add_src_unix_not_apple)
 
-#######################################
+########################################
 # FUNCTION add_src_apple
-#######################################
+########################################
 function(add_src_apple var)
     if (APPLE)
         set(${var} ${${var}} ${ARGN} PARENT_SCOPE)
     endif()
 endfunction(add_src_apple)
 
-#######################################
+########################################
 # FUNCTION copy_and_rename_lib
-#######################################
+########################################
 function(copy_and_rename_lib target name)
     set(name2 $<TARGET_FILE_DIR:${target}>/${CMAKE_SHARED_LIBRARY_PREFIX}${name}${CMAKE_SHARED_LIBRARY_SUFFIX})
     add_custom_command(
@@ -209,16 +209,16 @@
     )
 endfunction(copy_and_rename_lib)
 
-#######################################
+########################################
 # FUNCTION project_group
-#######################################
+########################################
 function(project_group target name)
     set_target_properties(${target} PROPERTIES FOLDER ${name})
 endfunction(project_group)
 
-#######################################
+########################################
 # FUNCTION set_generated_directory
-#######################################
+########################################
 function(set_generated_directory)
     if (NOT CMAKE_CROSSCOMPILING)
         set(GENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
@@ -228,36 +228,36 @@
     endif()
 endfunction(set_generated_directory)
 
-#######################################
+########################################
 # FUNCTION add_dependencies_cc (cross compile)
-#######################################
+########################################
 function(add_dependencies_cc target)
     if (NOT CMAKE_CROSSCOMPILING)
         add_dependencies(${target} ${ARGN})
     endif()
 endfunction(add_dependencies_cc)
 
-#######################################
+########################################
 # FUNCTION add_dependencies_unix_cc (cross compile)
-#######################################
+########################################
 function(add_dependencies_unix_cc target)
     if (UNIX)
         add_dependencies_cc(${target} ${ARGN})
     endif()
 endfunction(add_dependencies_unix_cc)
 
-#######################################
+########################################
 # FUNCTION crosscompile_prebuild_steps
-#######################################
+########################################
 function(crosscompile_prebuild_steps)
     if (CMAKE_CROSSCOMPILING)
         execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${NATIVE_BUILD_DIR}/src/include/gen/parse.h ${CMAKE_BINARY_DIR}/src/include/gen/parse.h)
     endif()
 endfunction(crosscompile_prebuild_steps)
 
-#######################################
+########################################
 # FUNCTION create_command
-#######################################
+########################################
 function(create_command command type out)
     set(dir ${output_dir})
     if ("${type}" STREQUAL "boot")
@@ -307,9 +307,9 @@
     set(${out} ${CMD}_CMD PARENT_SCOPE)
 endfunction(create_command)
 
-#######################################
+########################################
 # FUNCTION create_boot_commands
-#######################################
+########################################
 function(create_boot_commands)
     set(cmd_list
         boot_isql
@@ -326,9 +326,9 @@
     endforeach()
 endfunction(create_boot_commands)
 
-#######################################
+########################################
 # FUNCTION create_master_commands
-#######################################
+########################################
 function(create_master_commands)
     set(cmd_list
         isql
@@ -341,4 +341,4 @@
     endforeach()
 endfunction(create_master_commands)
 
-###############################################################################
+################################################################################
Modified: firebird/trunk/builds/cmake/Configure.cmake
===================================================================
--- firebird/trunk/builds/cmake/Configure.cmake	2015-04-07 03:19:51 UTC (rev 61254)
+++ firebird/trunk/builds/cmake/Configure.cmake	2015-04-07 10:08:58 UTC (rev 61255)
@@ -1,12 +1,12 @@
-###############################################################################
+################################################################################
 #
 # configure
 #
-###############################################################################
+################################################################################
 
-#######################################
+########################################
 # FUNCTION check_includes
-#######################################
+########################################
 function(check_includes files)
     foreach(F ${${files}})
         set(name ${F})
@@ -20,9 +20,9 @@
     endforeach()
 endfunction(check_includes)
 
-#######################################
+########################################
 # FUNCTION check_functions
-#######################################
+########################################
 function(check_functions functions)
     foreach(F ${${functions}})
         set(name ${F})
@@ -34,9 +34,9 @@
     endforeach()
 endfunction(check_functions)
 
-#######################################
+########################################
 # FUNCTION check_type_alignment
-#######################################
+########################################
 function(check_type_alignment type var)
     if (NOT DEFINED ${var})
         check_c_source_runs("main(){struct s{char a;${type} b;};exit((int)&((struct s*)0)->b);}" ${var})
@@ -46,20 +46,23 @@
     endif()
 endfunction(check_type_alignment)
 
-#######################################
+########################################
 # FUNCTION check_symbol
-#######################################
+########################################
 function(check_symbol symbol var)
-    foreach(f ${ARGN})
-        if (NOT ${var})
-            unset(${var} CACHE)
-            message(STATUS "Looking for ${symbol} - ${f}")
-            check_symbol_exists(${symbol} ${f} ${var})
-        endif()
-    endforeach()
+    if (NOT ${var}_SYMBOL)
+        foreach(f ${ARGN})
+            if (NOT ${var})
+                unset(${var} CACHE)
+                message(STATUS "Looking for ${symbol} - ${f}")
+                check_symbol_exists(${symbol} ${f} ${var})
+            endif()
+        endforeach()
+    endif()
+    set(${var}_SYMBOL 1 CACHE INTERNAL "Do not check this symbol again")
 endfunction(check_symbol)
 
-#######################################
+########################################
 
 include(CheckCSourceCompiles)
 include(CheckCSourceRuns)
@@ -315,7 +318,7 @@
     set(HAVE__PROC_SELF_EXE 1)
 endif()
 
-#######################################
+########################################
 
 if (NOT CMAKE_CROSSCOMPILING)
     check_type_alignment(long FB_ALIGNMENT)
@@ -328,7 +331,7 @@
     endif()
 endif()
 
-#######################################
+########################################
 
 if (WIN32)
     set(ENABLE_BINRELOC 0)
@@ -342,4 +345,4 @@
     set(CASE_SENSITIVITY "false")
 endif()
 
-###############################################################################
+################################################################################
Modified: firebird/trunk/examples/CMakeLists.txt
===================================================================
--- firebird/trunk/examples/CMakeLists.txt	2015-04-07 03:19:51 UTC (rev 61254)
+++ firebird/trunk/examples/CMakeLists.txt	2015-04-07 10:08:58 UTC (rev 61255)
@@ -91,6 +91,7 @@
 add_library             (dbcrypt_example SHARED dbcrypt/DbCrypt.cpp)
 set_target_properties   (dbcrypt_example PROPERTIES OUTPUT_NAME DbCrypt_example)
 set_output_directory    (dbcrypt_example plugins)
+add_dependencies_cc     (dbcrypt_example UpdateCloopInterfaces)
 project_group           (dbcrypt_example Examples)
 
 
@@ -101,6 +102,7 @@
 add_library             (cryptkeyholder_example SHARED dbcrypt/CryptKeyHolder.cpp)
 set_target_properties   (cryptkeyholder_example PROPERTIES OUTPUT_NAME CryptKeyHolder_example)
 set_output_directory    (cryptkeyholder_example plugins)
+add_dependencies_cc     (cryptkeyholder_example UpdateCloopInterfaces)
 project_group           (cryptkeyholder_example Examples)
 
 ###############################################################################
Modified: firebird/trunk/src/CMakeLists.txt
===================================================================
--- firebird/trunk/src/CMakeLists.txt	2015-04-07 03:19:51 UTC (rev 61254)
+++ firebird/trunk/src/CMakeLists.txt	2015-04-07 10:08:58 UTC (rev 61255)
@@ -269,6 +269,29 @@
 project_group(parse "Boot/Custom build steps")
 set_source_files_properties(dsql/parse.cpp include/gen/parse.h PROPERTIES GENERATED TRUE)
 
+
+########################################
+# BUILD_STEP UpdateCloopInterfaces
+########################################
+
+add_custom_command(
+    OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/IdlFbInterfaces.h
+    DEPENDS
+        cloop
+        ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/FirebirdInterface.idl
+    COMMAND cloop
+            ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/FirebirdInterface.idl
+            c++
+            ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/IdlFbInterfaces.h
+            IDL_FB_INTERFACES_H Firebird I
+    COMMENT "Updating cloop interfaces..."
+)
+add_custom_target(UpdateCloopInterfaces
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/IdlFbInterfaces.h
+    SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/include/firebird/FirebirdInterface.idl
+)
+project_group(UpdateCloopInterfaces "Boot/Custom build steps")
+
 endif() # if (NOT CMAKE_CROSSCOMPILING)
 
 
@@ -348,6 +371,7 @@
 
 add_library                 (common ${common_src} ${common_os_src} ${common_include})
 target_link_libraries       (common ${LIB_mpr})
+add_dependencies_cc         (common UpdateCloopInterfaces)
 
 
 ################################################################################
@@ -381,7 +405,7 @@
 add_epp_suffix(yvalve_generated_src master)
 
 add_library                 (yvalve_common OBJECT ${yvalve_src} ${yvalve_include})
-add_dependencies_cc         (yvalve_common parse)
+add_dependencies_cc         (yvalve_common parse UpdateCloopInterfaces)
 
 if (NOT CMAKE_CROSSCOMPILING)
 
@@ -470,7 +494,7 @@
 file(GLOB_RECURSE engine12_include "dsql/*.h" "jrd/*.h" include/gen/iberror.h)
 
 add_library                 (engine12_common ${engine12_src} ${engine12_include} ${parse_src})
-add_dependencies_cc         (engine12_common parse)
+add_dependencies_cc         (engine12_common parse UpdateCloopInterfaces)
 
 if (NOT CMAKE_CROSSCOMPILING)
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-07 23:07:23
       
   | 
Revision: 61258
          http://sourceforge.net/p/firebird/code/61258
Author:   firebirds
Date:     2015-04-07 23:07:16 +0000 (Tue, 07 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-07 13:56:06 UTC (rev 61257)
+++ firebird/trunk/ChangeLog	2015-04-07 23:07:16 UTC (rev 61258)
@@ -1,3 +1,66 @@
+ 2015-04-07 13:56  alexpeshkoff 
+   A extern/cloop/Makefile
+Fixed posix build
+
+ 2015-04-07 10:29  egorpugin 
+   M src/gpre/CMakeLists.txt
+   M src/remote/CMakeLists.txt
+[build] [cmake] Add more cloop dependencies.
+
+ 2015-04-07 10:08  egorpugin 
+   M CMakeLists.txt
+   M builds/cmake/BuildFunctions.cmake
+   M builds/cmake/Configure.cmake
+   M examples/CMakeLists.txt
+   M src/CMakeLists.txt
+Add cloop to CMake build.
+
+ 2015-04-07 03:19  asfernandes 
+   M builds/posix/Makefile.in
+   M builds/posix/make.defaults
+Integrate cloop in the posix build.
+
+ 2015-04-07 03:19  asfernandes 
+   A extern/cloop
+   A extern/cloop/.gitignore
+   A extern/cloop/cloop.sln
+   A extern/cloop/src
+   A extern/cloop/src/cloop
+   A extern/cloop/src/cloop/Expr.cpp
+   A extern/cloop/src/cloop/Expr.h
+   A extern/cloop/src/cloop/Generator.cpp
+   A extern/cloop/src/cloop/Generator.h
+   A extern/cloop/src/cloop/Lexer.cpp
+   A extern/cloop/src/cloop/Lexer.h
+   A extern/cloop/src/cloop/Main.cpp
+   A extern/cloop/src/cloop/Parser.cpp
+   A extern/cloop/src/cloop/Parser.h
+   A extern/cloop/src/cloop/cloop.vcxproj
+   A extern/cloop/src/cloop/cloop.vcxproj.filters
+   A extern/cloop/src/tests
+   A extern/cloop/src/tests/test1
+   A extern/cloop/src/tests/test1/CTest.c
+   A extern/cloop/src/tests/test1/CalcCApi.c
+   A extern/cloop/src/tests/test1/CalcCApi.h
+   A extern/cloop/src/tests/test1/CalcCppApi.h
+   A extern/cloop/src/tests/test1/CalcPascalApi.implementation.pas
+   A extern/cloop/src/tests/test1/CalcPascalApi.interface.pas
+   A extern/cloop/src/tests/test1/CalcPascalApi.pas
+   A extern/cloop/src/tests/test1/CppTest.cpp
+   A extern/cloop/src/tests/test1/Interface.idl
+   A extern/cloop/src/tests/test1/PascalClasses.pas
+   A extern/cloop/src/tests/test1/PascalLibrary.dpr
+   A extern/cloop/src/tests/test1/PascalTest.dpr
+   A extern/cloop/src/tests/test1/test1-c-dll.vcxproj
+   A extern/cloop/src/tests/test1/test1-c-dll.vcxproj.filters
+   A extern/cloop/src/tests/test1/test1-c-exe.vcxproj
+   A extern/cloop/src/tests/test1/test1-c-exe.vcxproj.filters
+   A extern/cloop/src/tests/test1/test1-cpp-dll.vcxproj
+   A extern/cloop/src/tests/test1/test1-cpp-dll.vcxproj.filters
+   A extern/cloop/src/tests/test1/test1-cpp-exe.vcxproj
+   A extern/cloop/src/tests/test1/test1-cpp-exe.vcxproj.filters
+Import cloop (hash 912a16ee1424c9b8548dfdef78ad18cba901f6c8) utility.
+
  2015-04-06 23:21  asfernandes 
    M src/jrd/dfw.epp
 Fixed CORE-4738 - Command "Alter table <T> alter <C> type <domain_>" does not work: "BLR syntax error: expected valid BLR code at offset 15, encountered 255" - regression introduced with CORE-4733.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-07 13:56:06 UTC (rev 61257)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-07 23:07:16 UTC (rev 61258)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31775
+  FORMAL BUILD NUMBER:31780
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31775"
-#define FILE_VER_STRING "WI-T3.0.0.31775"
-#define LICENSE_VER_STRING "WI-T3.0.0.31775"
-#define FILE_VER_NUMBER 3, 0, 0, 31775
+#define PRODUCT_VER_STRING "3.0.0.31780"
+#define FILE_VER_STRING "WI-T3.0.0.31780"
+#define LICENSE_VER_STRING "WI-T3.0.0.31780"
+#define FILE_VER_NUMBER 3, 0, 0, 31780
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31775"
+#define FB_BUILD_NO "31780"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-07 13:56:06 UTC (rev 61257)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-07 23:07:16 UTC (rev 61258)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31775
+BuildNum=31780
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <asf...@us...> - 2015-04-08 03:21:11
       
   | 
Revision: 61259
          http://sourceforge.net/p/firebird/code/61259
Author:   asfernandes
Date:     2015-04-08 03:21:09 +0000 (Wed, 08 Apr 2015)
Log Message:
-----------
Fixed (again) CORE-2932 - Wrong field position after ALTER POSITION.
Modified Paths:
--------------
    firebird/trunk/doc/WhatsNew
    firebird/trunk/src/dsql/DdlNodes.epp
Modified: firebird/trunk/doc/WhatsNew
===================================================================
--- firebird/trunk/doc/WhatsNew	2015-04-07 23:07:16 UTC (rev 61258)
+++ firebird/trunk/doc/WhatsNew	2015-04-08 03:21:09 UTC (rev 61259)
@@ -241,6 +241,11 @@
       Contributor(s):
         Adriano dos Santos Fernandes <adrianosf at gmail.com>
 
+    * Bugfix CORE-2932
+        Wrong field position after ALTER POSITION
+      Contributor(s):
+        Adriano dos Santos Fernandes <adrianosf at gmail.com>
+
     * Bugfix CORE-2848
         Page-level "lock conversion denied" or "lock denied" errors
       Contributor(s):
@@ -1612,11 +1617,6 @@
       Contributor(s):
         Dimitry Sibiryakov <sd at ibphoenix.com>
 
-    * Bugfix CORE-2932
-        Wrong field position after ALTER POSITION
-      Contributor(s):
-        Adriano dos Santos Fernandes <adrianosf at gmail.com>
-
     * Bugfix CORE-2922
         Character set used in constants is not registered as a dependency
       Contributor(s):
Modified: firebird/trunk/src/dsql/DdlNodes.epp
===================================================================
--- firebird/trunk/src/dsql/DdlNodes.epp	2015-04-07 23:07:16 UTC (rev 61258)
+++ firebird/trunk/src/dsql/DdlNodes.epp	2015-04-08 03:21:09 UTC (rev 61259)
@@ -91,8 +91,7 @@
 static void checkFkPairTypes(const rel_t masterType, const MetaName& masterName,
 	const rel_t childType, const MetaName& childName);
 static void modifyLocalFieldPosition(thread_db* tdbb, jrd_tra* transaction,
-	const MetaName& relationName, const MetaName& fieldName, USHORT newPosition,
-	USHORT existingPosition);
+	const MetaName& relationName, const MetaName& fieldName, USHORT newPosition);
 static rel_t relationType(SSHORT relationTypeNull, SSHORT relationType);
 static void saveField(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch, const MetaName& fieldName);
 static void saveRelation(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch,
@@ -635,9 +634,11 @@
 //
 //      if new_position == original_position -- no_op
 static void modifyLocalFieldPosition(thread_db* tdbb, jrd_tra* transaction,
-	const MetaName& relationName, const MetaName& fieldName, USHORT newPosition,
-	USHORT existingPosition)
+	const MetaName& relationName, const MetaName& fieldName, USHORT newPosition)
 {
+	USHORT existingPosition = 0;
+	bool found = false;
+
 	// Make sure that there are no duplicate field positions and no gaps in the position sequence.
 	// (gaps are introduced when fields are removed)
 
@@ -656,13 +657,24 @@
 			END_MODIFY
 		}
 
+		if (fieldName == FLD.RDB$FIELD_NAME)
+		{
+			found = true;
+			existingPosition = newPos;
+		}
+
 		++newPos;
 	}
 	END_FOR
 
+	if (!found)
+	{
+		// msg 176: "column %s does not exist in table/view %s"
+		status_exception::raise(Arg::PrivateDyn(176) << fieldName << relationName);
+	}
+
 	// Find the position of the last field in the relation.
-	SLONG maxPosition = -1;
-	DYN_UTIL_generate_field_position(tdbb, relationName, &maxPosition);
+	SLONG maxPosition = SLONG(newPos) - 1;
 
 	// If the existing position of the field is less than the new position of
 	// the field, subtract 1 to move the fields to their new positions otherwise,
@@ -7255,29 +7267,8 @@
 					// CVC: Since now the parser accepts pos=1..N, let's subtract one here.
 					const SSHORT pos = clause->newPos - 1;
 
-					AutoRequest request;
-					bool found = false;
-					SSHORT oldPos;
+					modifyLocalFieldPosition(tdbb, transaction, name, clause->name, pos);
 
-					FOR(REQUEST_HANDLE request TRANSACTION_HANDLE transaction)
-						RFL IN RDB$RELATION_FIELDS
-						WITH RFL.RDB$FIELD_NAME EQ clause->name.c_str() AND
-							 RFL.RDB$RELATION_NAME EQ name.c_str()
-					{
-						found = true;
-						oldPos = RFL.RDB$FIELD_POSITION;
-					}
-					END_FOR
-
-					if (!found)
-					{
-						// msg 176: "column %s does not exist in table/view %s"
-						status_exception::raise(Arg::PrivateDyn(176) << clause->name << name);
-					}
-
-					if (pos != oldPos)
-						modifyLocalFieldPosition(tdbb, transaction, name, clause->name, pos, oldPos);
-
 					break;
 				}
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-08 22:07:03
       
   | 
Revision: 61270
          http://sourceforge.net/p/firebird/code/61270
Author:   firebirds
Date:     2015-04-08 22:06:56 +0000 (Wed, 08 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-08 19:55:21 UTC (rev 61269)
+++ firebird/trunk/ChangeLog	2015-04-08 22:06:56 UTC (rev 61270)
@@ -1,3 +1,16 @@
+ 2015-04-08 15:12  asfernandes 
+   M src/lock/print.cpp
+Remove duplicate lck enums.
+
+ 2015-04-08 15:08  asfernandes 
+   M src/remote/inet.cpp
+Misc.
+
+ 2015-04-08 03:21  asfernandes 
+   M doc/WhatsNew
+   M src/dsql/DdlNodes.epp
+Fixed (again) CORE-2932 - Wrong field position after ALTER POSITION.
+
  2015-04-07 13:56  alexpeshkoff 
    A extern/cloop/Makefile
 Fixed posix build
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-08 19:55:21 UTC (rev 61269)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-08 22:06:56 UTC (rev 61270)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31780
+  FORMAL BUILD NUMBER:31783
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31780"
-#define FILE_VER_STRING "WI-T3.0.0.31780"
-#define LICENSE_VER_STRING "WI-T3.0.0.31780"
-#define FILE_VER_NUMBER 3, 0, 0, 31780
+#define PRODUCT_VER_STRING "3.0.0.31783"
+#define FILE_VER_STRING "WI-T3.0.0.31783"
+#define LICENSE_VER_STRING "WI-T3.0.0.31783"
+#define FILE_VER_NUMBER 3, 0, 0, 31783
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31780"
+#define FB_BUILD_NO "31783"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-08 19:55:21 UTC (rev 61269)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-08 22:06:56 UTC (rev 61270)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31780
+BuildNum=31783
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-11 18:58:36
       
   | 
Revision: 61292
          http://sourceforge.net/p/firebird/code/61292
Author:   firebirds
Date:     2015-04-11 18:58:34 +0000 (Sat, 11 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-11 16:11:16 UTC (rev 61291)
+++ firebird/trunk/ChangeLog	2015-04-11 18:58:34 UTC (rev 61292)
@@ -1,3 +1,7 @@
+ 2015-04-11 00:59  asfernandes 
+   M src/dsql/DdlNodes.epp
+Fixed CORE-4744 - ALTER DATABASE SET DEFAULT CHARACTER SET: 1) take effect only for once for current attachment; 2) does not check that new char set exists untill it will be used.
+
  2015-04-08 15:12  asfernandes 
    M src/lock/print.cpp
 Remove duplicate lck enums.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-11 16:11:16 UTC (rev 61291)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-11 18:58:34 UTC (rev 61292)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31783
+  FORMAL BUILD NUMBER:31784
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31783"
-#define FILE_VER_STRING "WI-T3.0.0.31783"
-#define LICENSE_VER_STRING "WI-T3.0.0.31783"
-#define FILE_VER_NUMBER 3, 0, 0, 31783
+#define PRODUCT_VER_STRING "3.0.0.31784"
+#define FILE_VER_STRING "WI-T3.0.0.31784"
+#define LICENSE_VER_STRING "WI-T3.0.0.31784"
+#define FILE_VER_NUMBER 3, 0, 0, 31784
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31783"
+#define FB_BUILD_NO "31784"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-11 16:11:16 UTC (rev 61291)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-11 18:58:34 UTC (rev 61292)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31783
+BuildNum=31784
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-13 17:02:29
       
   | 
Revision: 61300
          http://sourceforge.net/p/firebird/code/61300
Author:   firebirds
Date:     2015-04-13 17:02:22 +0000 (Mon, 13 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-13 12:54:41 UTC (rev 61299)
+++ firebird/trunk/ChangeLog	2015-04-13 17:02:22 UTC (rev 61300)
@@ -1,3 +1,7 @@
+ 2015-04-12 21:05  asfernandes 
+   M src/lock/print.cpp
+Revert "Remove duplicate lck enums." - broke Windows build as per Dmitry.
+
  2015-04-11 00:59  asfernandes 
    M src/dsql/DdlNodes.epp
 Fixed CORE-4744 - ALTER DATABASE SET DEFAULT CHARACTER SET: 1) take effect only for once for current attachment; 2) does not check that new char set exists untill it will be used.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-13 12:54:41 UTC (rev 61299)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-13 17:02:22 UTC (rev 61300)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31784
+  FORMAL BUILD NUMBER:31785
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31784"
-#define FILE_VER_STRING "WI-T3.0.0.31784"
-#define LICENSE_VER_STRING "WI-T3.0.0.31784"
-#define FILE_VER_NUMBER 3, 0, 0, 31784
+#define PRODUCT_VER_STRING "3.0.0.31785"
+#define FILE_VER_STRING "WI-T3.0.0.31785"
+#define LICENSE_VER_STRING "WI-T3.0.0.31785"
+#define FILE_VER_NUMBER 3, 0, 0, 31785
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31784"
+#define FB_BUILD_NO "31785"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-13 12:54:41 UTC (rev 61299)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-13 17:02:22 UTC (rev 61300)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31784
+BuildNum=31785
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <asf...@us...> - 2015-04-13 18:35:55
       
   | 
Revision: 61305
          http://sourceforge.net/p/firebird/code/61305
Author:   asfernandes
Date:     2015-04-13 18:35:46 +0000 (Mon, 13 Apr 2015)
Log Message:
-----------
Fixed CORE-4725 - Inconsistencies with ALTER DOMAIN and ALTER TABLE with DROP NOT NULL and PRIMARY KEYs; Fixed some others problems with trailing spaces in object names in error messages.
Modified Paths:
--------------
    firebird/trunk/lang_helpers/gds_codes.ftn
    firebird/trunk/lang_helpers/gds_codes.pas
    firebird/trunk/src/dsql/DdlNodes.epp
    firebird/trunk/src/include/gen/codetext.h
    firebird/trunk/src/include/gen/iberror.h
    firebird/trunk/src/include/gen/msgs.h
    firebird/trunk/src/include/gen/sql_code.h
    firebird/trunk/src/include/gen/sql_state.h
    firebird/trunk/src/jrd/trig.h
    firebird/trunk/src/msgs/facilities2.sql
    firebird/trunk/src/msgs/messages2.sql
    firebird/trunk/src/msgs/system_errors2.sql
Modified: firebird/trunk/lang_helpers/gds_codes.ftn
===================================================================
--- firebird/trunk/lang_helpers/gds_codes.ftn	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/lang_helpers/gds_codes.ftn	2015-04-13 18:35:46 UTC (rev 61305)
@@ -1616,6 +1616,8 @@
       PARAMETER (GDS__fun_param_mismatch               = 335545101)
       INTEGER*4 GDS__savepoint_backout_err           
       PARAMETER (GDS__savepoint_backout_err            = 335545102)
+      INTEGER*4 GDS__domain_primary_key_notnull      
+      PARAMETER (GDS__domain_primary_key_notnull       = 335545103)
       INTEGER*4 GDS__gfix_db_name                    
       PARAMETER (GDS__gfix_db_name                     = 335740929)
       INTEGER*4 GDS__gfix_invalid_sw                 
Modified: firebird/trunk/lang_helpers/gds_codes.pas
===================================================================
--- firebird/trunk/lang_helpers/gds_codes.pas	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/lang_helpers/gds_codes.pas	2015-04-13 18:35:46 UTC (rev 61305)
@@ -815,6 +815,7 @@
 	gds_interface_version_too_old        = 335545100;
 	gds_fun_param_mismatch               = 335545101;
 	gds_savepoint_backout_err            = 335545102;
+	gds_domain_primary_key_notnull       = 335545103;
 	gds_gfix_db_name                     = 335740929;
 	gds_gfix_invalid_sw                  = 335740930;
 	gds_gfix_incmp_sw                    = 335740932;
Modified: firebird/trunk/src/dsql/DdlNodes.epp
===================================================================
--- firebird/trunk/src/dsql/DdlNodes.epp	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/dsql/DdlNodes.epp	2015-04-13 18:35:46 UTC (rev 61305)
@@ -1737,7 +1737,7 @@
 		if (FUN.RDB$SYSTEM_FLAG)
 		{
 			status_exception::raise(
-				Arg::Gds(isc_dyn_cannot_mod_sysfunc) << FUN.RDB$FUNCTION_NAME);
+				Arg::Gds(isc_dyn_cannot_mod_sysfunc) << MetaName(FUN.RDB$FUNCTION_NAME));
 		}
 
 		if (!secondPass && runTriggers && package.isEmpty())
@@ -2357,7 +2357,11 @@
 			 FUN.RDB$PACKAGE_NAME EQUIV NULLIF(package.c_str(), '')
 	{
 		if (FUN.RDB$SYSTEM_FLAG)
-			status_exception::raise(Arg::Gds(isc_dyn_cannot_mod_sysfunc) << FUN.RDB$FUNCTION_NAME);
+		{
+			status_exception::raise(
+				Arg::Gds(isc_dyn_cannot_mod_sysfunc) <<
+				MetaName(FUN.RDB$FUNCTION_NAME));
+		}
 
 		if (package.isEmpty())
 			executeDdlTrigger(tdbb, dsqlScratch, transaction, DTW_BEFORE, DDL_TRIGGER_DROP_FUNCTION, name);
@@ -2689,7 +2693,11 @@
 			 P.RDB$PACKAGE_NAME EQUIV NULLIF(package.c_str(), '')
 	{
 		if (P.RDB$SYSTEM_FLAG)
-			status_exception::raise(Arg::Gds(isc_dyn_cannot_mod_sysproc) << P.RDB$PROCEDURE_NAME);
+		{
+			status_exception::raise(
+				Arg::Gds(isc_dyn_cannot_mod_sysproc) <<
+				MetaName(P.RDB$PROCEDURE_NAME));
+		}
 
 		if (!secondPass && runTriggers && package.isEmpty())
 		{
@@ -3122,7 +3130,11 @@
 			 PRC.RDB$PACKAGE_NAME EQUIV NULLIF(package.c_str(), '')
 	{
 		if (PRC.RDB$SYSTEM_FLAG)
-			status_exception::raise(Arg::Gds(isc_dyn_cannot_mod_sysproc) << PRC.RDB$PROCEDURE_NAME);
+		{
+			status_exception::raise(
+				Arg::Gds(isc_dyn_cannot_mod_sysproc) <<
+				MetaName(PRC.RDB$PROCEDURE_NAME));
+		}
 
 		if (package.isEmpty())
 		{
@@ -3242,7 +3254,7 @@
 
 				case fb_sysflag_system:
 					status_exception::raise(
-						Arg::Gds(isc_dyn_cannot_mod_systrig) << TRG.RDB$TRIGGER_NAME);
+						Arg::Gds(isc_dyn_cannot_mod_systrig) << MetaName(TRG.RDB$TRIGGER_NAME));
 					break;
 
 				default:
@@ -3590,7 +3602,7 @@
 
 			case fb_sysflag_system:
 				status_exception::raise(
-					Arg::Gds(isc_dyn_cannot_mod_systrig) << X.RDB$TRIGGER_NAME);
+					Arg::Gds(isc_dyn_cannot_mod_systrig) << MetaName(X.RDB$TRIGGER_NAME));
 				break;
 
 			default:
@@ -4736,6 +4748,30 @@
 			{
 				FLD.RDB$NULL_FLAG.NULL = FALSE;
 				FLD.RDB$NULL_FLAG = notNullFlag.value;
+
+				if (!notNullFlag.value)
+				{
+					AutoRequest request2;
+
+					FOR(REQUEST_HANDLE request2 TRANSACTION_HANDLE transaction)
+						RFL IN RDB$RELATION_FIELDS CROSS
+						IND IN RDB$INDICES CROSS
+						INDSEG IN RDB$INDEX_SEGMENTS CROSS
+						RELCON IN RDB$RELATION_CONSTRAINTS
+						WITH RFL.RDB$FIELD_SOURCE EQ name.c_str() AND
+							 (RFL.RDB$NULL_FLAG MISSING OR RFL.RDB$NULL_FLAG EQ 0) AND
+							 IND.RDB$RELATION_NAME EQ RFL.RDB$RELATION_NAME AND
+							 INDSEG.RDB$INDEX_NAME EQ IND.RDB$INDEX_NAME AND
+							 INDSEG.RDB$FIELD_NAME EQ RFL.RDB$FIELD_NAME AND
+							 RELCON.RDB$INDEX_NAME EQ INDSEG.RDB$INDEX_NAME AND
+							 RELCON.RDB$CONSTRAINT_TYPE EQ PRIMARY_KEY
+					{
+						status_exception::raise(
+							Arg::Gds(isc_domain_primary_key_notnull) <<
+							MetaName(RFL.RDB$RELATION_NAME));
+					}
+					END_FOR
+				}
 			}
 
 			if (type)
@@ -4796,9 +4832,9 @@
 
 				if (!newDom.dyn_dsc.isExact() || newDom.dyn_dsc.dsc_scale != 0)
 				{
-					AutoCacheRequest request(tdbb, drq_l_ident_gens, DYN_REQUESTS);
+					AutoCacheRequest request2(tdbb, drq_l_ident_gens, DYN_REQUESTS);
 
-					FOR (REQUEST_HANDLE request TRANSACTION_HANDLE transaction)
+					FOR (REQUEST_HANDLE request2 TRANSACTION_HANDLE transaction)
 						RFR IN RDB$RELATION_FIELDS
 						WITH RFR.RDB$FIELD_SOURCE = FLD.RDB$FIELD_NAME AND
 							 RFR.RDB$GENERATOR_NAME NOT MISSING
Modified: firebird/trunk/src/include/gen/codetext.h
===================================================================
--- firebird/trunk/src/include/gen/codetext.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/include/gen/codetext.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -804,6 +804,7 @@
 	{"interface_version_too_old", 335545100},
 	{"fun_param_mismatch", 335545101},
 	{"savepoint_backout_err", 335545102},
+	{"domain_primary_key_notnull", 335545103},
 	{"gfix_db_name", 335740929},
 	{"gfix_invalid_sw", 335740930},
 	{"gfix_incmp_sw", 335740932},
Modified: firebird/trunk/src/include/gen/iberror.h
===================================================================
--- firebird/trunk/src/include/gen/iberror.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/include/gen/iberror.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -838,6 +838,7 @@
 const ISC_STATUS isc_interface_version_too_old        = 335545100L;
 const ISC_STATUS isc_fun_param_mismatch               = 335545101L;
 const ISC_STATUS isc_savepoint_backout_err            = 335545102L;
+const ISC_STATUS isc_domain_primary_key_notnull       = 335545103L;
 const ISC_STATUS isc_gfix_db_name                     = 335740929L;
 const ISC_STATUS isc_gfix_invalid_sw                  = 335740930L;
 const ISC_STATUS isc_gfix_incmp_sw                    = 335740932L;
@@ -1296,7 +1297,7 @@
 const ISC_STATUS isc_trace_switch_param_miss          = 337182758L;
 const ISC_STATUS isc_trace_param_act_notcompat        = 337182759L;
 const ISC_STATUS isc_trace_mandatory_switch_miss      = 337182760L;
-const ISC_STATUS isc_err_max                          = 1240;
+const ISC_STATUS isc_err_max                          = 1241;
 
 #else /* c definitions */
 
@@ -2104,6 +2105,7 @@
 #define isc_interface_version_too_old        335545100L
 #define isc_fun_param_mismatch               335545101L
 #define isc_savepoint_backout_err            335545102L
+#define isc_domain_primary_key_notnull       335545103L
 #define isc_gfix_db_name                     335740929L
 #define isc_gfix_invalid_sw                  335740930L
 #define isc_gfix_incmp_sw                    335740932L
@@ -2562,7 +2564,7 @@
 #define isc_trace_switch_param_miss          337182758L
 #define isc_trace_param_act_notcompat        337182759L
 #define isc_trace_mandatory_switch_miss      337182760L
-#define isc_err_max                          1240
+#define isc_err_max                          1241
 
 #endif
 
Modified: firebird/trunk/src/include/gen/msgs.h
===================================================================
--- firebird/trunk/src/include/gen/msgs.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/include/gen/msgs.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -807,6 +807,7 @@
 	{335545100, "Interface @3 version too old: expected @1, found @2"},		/* interface_version_too_old */
 	{335545101, "Input parameter mismatch for function @1"},		/* fun_param_mismatch */
 	{335545102, "Error during savepoint backout - transaction invalidated"},		/* savepoint_backout_err */
+	{335545103, "Domain used in the PRIMARY KEY constraint of table @1 must be NOT NULL"},		/* domain_primary_key_notnull */
 	{335740929, "data base file name (@1) already given"},		/* gfix_db_name */
 	{335740930, "invalid switch @1"},		/* gfix_invalid_sw */
 	{335740932, "incompatible switch combination"},		/* gfix_incmp_sw */
Modified: firebird/trunk/src/include/gen/sql_code.h
===================================================================
--- firebird/trunk/src/include/gen/sql_code.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/include/gen/sql_code.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -803,6 +803,7 @@
 	{335545100, -804}, /* 780 interface_version_too_old */
 	{335545101, -170}, /* 781 fun_param_mismatch */
 	{335545102, -901}, /* 782 savepoint_backout_err */
+	{335545103, -291}, /* 783 domain_primary_key_notnull */
 	{335740929, -901}, /*   1 gfix_db_name */
 	{335740930, -901}, /*   2 gfix_invalid_sw */
 	{335740932, -901}, /*   4 gfix_incmp_sw */
Modified: firebird/trunk/src/include/gen/sql_state.h
===================================================================
--- firebird/trunk/src/include/gen/sql_state.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/include/gen/sql_state.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -803,6 +803,7 @@
 	{335545100, "HY000"}, // 780 interface_version_too_old
 	{335545101, "07001"}, // 781 fun_param_mismatch
 	{335545102, "HY000"}, // 782 savepoint_backout_err
+	{335545103, "42000"}, // 783 domain_primary_key_notnull
 	{335740929, "00000"}, //   1 gfix_db_name
 	{335740930, "00000"}, //   2 gfix_invalid_sw
 	{335740932, "00000"}, //   4 gfix_incmp_sw
Modified: firebird/trunk/src/jrd/trig.h
===================================================================
--- firebird/trunk/src/jrd/trig.h	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/jrd/trig.h	2015-04-13 18:35:46 UTC (rev 61305)
@@ -1226,139 +1226,199 @@
 static const TEXT trigger_10_msg_1 [] = "Column used in a PRIMARY constraint must be NOT NULL.";
 ******/
 
+/***
+create trigger rdb$trigger_10 before delete on rdb$relation_constraints
+as
+begin
+    if (old.rdb$constraint_type in ('PRIMARY KEY', 'UNIQUE')) then
+    begin
+        if (exists(
+              select 1
+                from rdb$ref_constraints
+                where rdb$const_name_uq = old.rdb$constraint_name)) then
+        begin
+            exit; -- FIXME: blr_leave, 1
+        end
+    end
+
+    if (old.rdb$constraint_type = 'FOREIGN KEY') then
+    begin
+        delete from rdb$ref_constraints
+          where rdb$constraint_name = old.rdb$constraint_name;
+    end
+
+    if (old.rdb$constraint_type = 'NOT NULL') then
+    begin
+        for select idxseg.rdb$index_name
+              from rdb$check_constraints chkcon,
+                   rdb$relation_fields rfl,
+                   rdb$fields fld,
+                   rdb$indices ind,
+                   rdb$index_segments idxseg
+              where chkcon.rdb$constraint_name = old.rdb$constraint_name and
+                    rfl.rdb$field_name = chkcon.rdb$trigger_name and
+                    rfl.rdb$relation_name = old.rdb$relation_name and
+                    rfl.rdb$field_name = idxseg.rdb$field_name and
+                    fld.rdb$field_name = rfl.rdb$field_source and
+                    (fld.rdb$null_flag is null or fld.rdb$null_flag = 0) and
+                    ind.rdb$relation_name = old.rdb$relation_name and
+                    ind.rdb$index_name = idxseg.rdb$index_name
+            as cursor c1
+        do
+        begin
+            if (exists(
+                  select 1
+                    from rdb$relation_constraints
+                    where rdb$index_name = :c1.rdb$index_name and
+                          rdb$constraint_type = 'PRIMARY KEY')) then
+            begin
+                exit; -- FIXME: blr_leave, 2
+            end
+        end
+    end
+end
+***/
+
 static const UCHAR trigger10[] =
 {
 	blr_version5,
 	blr_begin,
-	blr_if,
-	blr_or,
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'T', 'Y', 'P', 'E',
-	blr_literal, blr_text, 11, 0, 'P', 'R', 'I', 'M', 'A', 'R', 'Y', 32, 'K',
-		'E', 'Y',
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'T', 'Y', 'P', 'E',
-	blr_literal, blr_text, 6, 0, 'U', 'N', 'I', 'Q', 'U', 'E',
-	blr_begin,
-	blr_if,
-	blr_any,
-	blr_rse, 1,
-	blr_relation, 19, 'R', 'D', 'B', '$', 'R', 'E', 'F', '_', 'C', 'O', 'N',
-		'S', 'T', 'R', 'A', 'I', 'N', 'T', 'S', 3,
-	blr_boolean,
-	blr_eql,
-	blr_field, 3, 17, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', '_', 'N',
-		'A', 'M', 'E', '_', 'U', 'Q',
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'N', 'A', 'M', 'E',
-	blr_end,
-	blr_leave, 1,
-	blr_end,
-	blr_end,
-	blr_end,
-	blr_if,
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'T', 'Y', 'P', 'E',
-	blr_literal, blr_text, 11, 0, 'F', 'O', 'R', 'E', 'I', 'G', 'N', 32, 'K',
-		'E', 'Y',
-	blr_begin,
-	blr_for,
-	blr_rse, 1,
-	blr_relation, 19, 'R', 'D', 'B', '$', 'R', 'E', 'F', '_', 'C', 'O', 'N',
-		'S', 'T', 'R', 'A', 'I', 'N', 'T', 'S', 4,
-	blr_boolean,
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'N', 'A', 'M', 'E',
-	blr_field, 4, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'N', 'A', 'M', 'E',
-	blr_end,
-	blr_begin,
-	blr_erase, 4,
-	blr_end,
-	blr_end,
-	blr_end,
-	blr_if,
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'T', 'Y', 'P', 'E',
-	blr_literal, blr_text, 8, 0, 'N', 'O', 'T', 32, 'N', 'U', 'L', 'L',
-	blr_begin,
-	blr_for,
-	blr_rse, 4,
-	blr_relation, 21, 'R', 'D', 'B', '$', 'C', 'H', 'E', 'C', 'K', '_', 'C',
-		'O', 'N', 'S', 'T', 'R', 'A', 'I', 'N', 'T', 'S', 5,
-	blr_relation, 19, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'F', 'I', 'E', 'L', 'D', 'S', 6,
-	blr_relation, 11, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'I', 'C', 'E', 'S',
-		7,
-	blr_relation, 18, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'E', 'X', '_', 'S',
-		'E', 'G', 'M', 'E', 'N', 'T', 'S', 8,
-	blr_boolean,
-	blr_and,
-	blr_eql,
-	blr_field, 0, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'N', 'A', 'M', 'E',
-	blr_field, 5, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'N', 'A', 'M', 'E',
-	blr_and,
-	blr_eql,
-	blr_field, 6, 14, 'R', 'D', 'B', '$', 'F', 'I', 'E', 'L', 'D', '_', 'N',
-		'A', 'M', 'E',
-	blr_field, 5, 16, 'R', 'D', 'B', '$', 'T', 'R', 'I', 'G', 'G', 'E', 'R',
-		'_', 'N', 'A', 'M', 'E',
-	blr_and,
-	blr_eql,
-	blr_field, 6, 17, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'N', 'A', 'M', 'E',
-	blr_field, 0, 17, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'N', 'A', 'M', 'E',
-	blr_and,
-	blr_eql,
-	blr_field, 6, 14, 'R', 'D', 'B', '$', 'F', 'I', 'E', 'L', 'D', '_', 'N',
-		'A', 'M', 'E',
-	blr_field, 8, 14, 'R', 'D', 'B', '$', 'F', 'I', 'E', 'L', 'D', '_', 'N',
-		'A', 'M', 'E',
-	blr_and,
-	blr_eql,
-	blr_field, 7, 17, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'N', 'A', 'M', 'E',
-	blr_field, 0, 17, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'N', 'A', 'M', 'E',
-	blr_eql,
-	blr_field, 7, 14, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'E', 'X', '_', 'N',
-		'A', 'M', 'E',
-	blr_field, 8, 14, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'E', 'X', '_', 'N',
-		'A', 'M', 'E',
-	blr_end,
-	blr_begin,
-	blr_if,
-	blr_any,
-	blr_rse, 1,
-	blr_relation, 24, 'R', 'D', 'B', '$', 'R', 'E', 'L', 'A', 'T', 'I', 'O',
-		'N', '_', 'C', 'O', 'N', 'S', 'T', 'R', 'A', 'I', 'N', 'T', 'S', 9,
-	blr_boolean,
-	blr_and,
-	blr_eql,
-	blr_field, 9, 14, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'E', 'X', '_', 'N',
-		'A', 'M', 'E',
-	blr_field, 8, 14, 'R', 'D', 'B', '$', 'I', 'N', 'D', 'E', 'X', '_', 'N',
-		'A', 'M', 'E',
-	blr_eql,
-	blr_field, 9, 19, 'R', 'D', 'B', '$', 'C', 'O', 'N', 'S', 'T', 'R', 'A',
-		'I', 'N', 'T', '_', 'T', 'Y', 'P', 'E',
-	blr_literal, blr_text, 11, 0, 'P', 'R', 'I', 'M', 'A', 'R', 'Y', 32, 'K',
-		'E', 'Y',
-	blr_end,
-	blr_leave, 2,
-	blr_end,
-	blr_end,
-	blr_end,
-	blr_end,
-	blr_end,
+	   blr_label, 0,
+		  blr_begin,
+		     blr_begin,
+		        blr_if,
+		           blr_or,
+		              blr_eql,
+		                 blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','T','Y','P','E',
+		                 blr_literal, blr_text2, 0,0, 11,0, 'P','R','I','M','A','R','Y',32,'K','E','Y',
+		              blr_eql,
+		                 blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','T','Y','P','E',
+		                 blr_literal, blr_text2, 0,0, 6,0, 'U','N','I','Q','U','E',
+		           blr_begin,
+		              blr_begin,
+		                 blr_if,
+		                    blr_any,
+		                       blr_rse, 1,
+		                          blr_relation, 19, 'R','D','B','$','R','E','F','_','C','O','N','S','T','R','A','I','N','T','S', 2,
+		                          blr_boolean,
+		                             blr_eql,
+		                                blr_field, 2, 17, 'R','D','B','$','C','O','N','S','T','_','N','A','M','E','_','U','Q',
+		                                blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','N','A','M','E',
+		                          blr_end,
+		                    blr_begin,
+		                       blr_begin,
+		                          blr_leave, 1,
+		                          blr_end,
+		                       blr_end,
+		                    blr_end,
+		                 blr_end,
+		              blr_end,
+		           blr_end,
+		        blr_if,
+		           blr_eql,
+		              blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','T','Y','P','E',
+		              blr_literal, blr_text2, 0,0, 11,0, 'F','O','R','E','I','G','N',32,'K','E','Y',
+		           blr_begin,
+		              blr_begin,
+		                 blr_for,
+		                    blr_rse, 1,
+		                       blr_relation, 19, 'R','D','B','$','R','E','F','_','C','O','N','S','T','R','A','I','N','T','S', 3,
+		                       blr_boolean,
+		                          blr_eql,
+		                             blr_field, 3, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','N','A','M','E',
+		                             blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','N','A','M','E',
+		                       blr_end,
+		                    blr_erase, 3,
+		                 blr_end,
+		              blr_end,
+		           blr_end,
+		        blr_if,
+		           blr_eql,
+		              blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','T','Y','P','E',
+		              blr_literal, blr_text2, 0,0, 8,0, 'N','O','T',32,'N','U','L','L',
+		           blr_begin,
+		              blr_begin,
+		                 blr_label, 1,
+		                    blr_for,
+		                       blr_rse, 5,
+		                          blr_relation2, 21, 'R','D','B','$','C','H','E','C','K','_','C','O','N','S','T','R','A','I','N','T','S',
+		                             9, 'C','1',32,'C','H','K','C','O','N', 4,
+		                          blr_relation2, 19, 'R','D','B','$','R','E','L','A','T','I','O','N','_','F','I','E','L','D','S',
+		                             6, 'C','1',32,'R','F','L', 5,
+		                          blr_relation2, 10, 'R','D','B','$','F','I','E','L','D','S',
+		                             6, 'C','1',32,'F','L','D', 6,
+		                          blr_relation2, 11, 'R','D','B','$','I','N','D','I','C','E','S',
+		                             6, 'C','1',32,'I','N','D', 7,
+		                          blr_relation2, 18, 'R','D','B','$','I','N','D','E','X','_','S','E','G','M','E','N','T','S',
+		                             9, 'C','1',32,'I','D','X','S','E','G', 8,
+		                          blr_boolean,
+		                             blr_and,
+		                                blr_and,
+		                                   blr_and,
+		                                      blr_and,
+		                                         blr_and,
+		                                            blr_and,
+		                                               blr_and,
+		                                                  blr_eql,
+		                                                     blr_field, 4, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','N','A','M','E',
+		                                                     blr_field, 0, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','N','A','M','E',
+		                                                  blr_eql,
+		                                                     blr_field, 5, 14, 'R','D','B','$','F','I','E','L','D','_','N','A','M','E',
+		                                                     blr_field, 4, 16, 'R','D','B','$','T','R','I','G','G','E','R','_','N','A','M','E',
+		                                               blr_eql,
+		                                                  blr_field, 5, 17, 'R','D','B','$','R','E','L','A','T','I','O','N','_','N','A','M','E',
+		                                                  blr_field, 0, 17, 'R','D','B','$','R','E','L','A','T','I','O','N','_','N','A','M','E',
+		                                            blr_eql,
+		                                               blr_field, 5, 14, 'R','D','B','$','F','I','E','L','D','_','N','A','M','E',
+		                                               blr_field, 8, 14, 'R','D','B','$','F','I','E','L','D','_','N','A','M','E',
+		                                         blr_eql,
+		                                            blr_field, 6, 14, 'R','D','B','$','F','I','E','L','D','_','N','A','M','E',
+		                                            blr_field, 5, 16, 'R','D','B','$','F','I','E','L','D','_','S','O','U','R','C','E',
+		                                      blr_or,
+		                                         blr_missing,
+		                                            blr_field, 6, 13, 'R','D','B','$','N','U','L','L','_','F','L','A','G',
+		                                         blr_eql,
+		                                            blr_field, 6, 13, 'R','D','B','$','N','U','L','L','_','F','L','A','G',
+		                                            blr_literal, blr_long, 0, 0,0,0,0,
+		                                   blr_eql,
+		                                      blr_field, 7, 17, 'R','D','B','$','R','E','L','A','T','I','O','N','_','N','A','M','E',
+		                                      blr_field, 0, 17, 'R','D','B','$','R','E','L','A','T','I','O','N','_','N','A','M','E',
+		                                blr_eql,
+		                                   blr_field, 7, 14, 'R','D','B','$','I','N','D','E','X','_','N','A','M','E',
+		                                   blr_field, 8, 14, 'R','D','B','$','I','N','D','E','X','_','N','A','M','E',
+		                          blr_end,
+		                       blr_begin,
+		                          blr_begin,
+		                             blr_begin,
+		                                blr_if,
+		                                   blr_any,
+		                                      blr_rse, 1,
+		                                         blr_relation, 24, 'R','D','B','$','R','E','L','A','T','I','O','N','_','C','O','N','S','T','R','A','I','N','T','S', 9,
+		                                         blr_boolean,
+		                                            blr_and,
+		                                               blr_eql,
+		                                                  blr_field, 9, 14, 'R','D','B','$','I','N','D','E','X','_','N','A','M','E',
+		                                                  blr_derived_expr, 1, 8,
+		                                                     blr_field, 8, 14, 'R','D','B','$','I','N','D','E','X','_','N','A','M','E',
+		                                               blr_eql,
+		                                                  blr_field, 9, 19, 'R','D','B','$','C','O','N','S','T','R','A','I','N','T','_','T','Y','P','E',
+		                                                  blr_literal, blr_text2, 0,0, 11,0, 'P','R','I','M','A','R','Y',32,'K','E','Y',
+		                                         blr_end,
+		                                   blr_begin,
+		                                      blr_begin,
+		                                         blr_leave, 2,
+		                                         blr_end,
+		                                      blr_end,
+		                                   blr_end,
+		                                blr_end,
+		                             blr_end,
+		                          blr_end,
+		                 blr_end,
+		              blr_end,
+		           blr_end,
+		        blr_end,
+		     blr_end,
+	   blr_end,
 	blr_eoc
 };
 
Modified: firebird/trunk/src/msgs/facilities2.sql
===================================================================
--- firebird/trunk/src/msgs/facilities2.sql	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/msgs/facilities2.sql	2015-04-13 18:35:46 UTC (rev 61305)
@@ -1,7 +1,7 @@
 /* MAX_NUMBER is the next number to be used, always one more than the highest message number. */
 set bulk_insert INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUMBER) VALUES (?, ?, ?, ?);
 --
-('2015-02-02 12:30:00', 'JRD', 0, 783)
+('2015-04-13 14:50:00', 'JRD', 0, 784)
 ('2015-03-17 18:33:00', 'QLI', 1, 533)
 ('2015-01-07 18:01:51', 'GFIX', 3, 134)
 ('1996-11-07 13:39:40', 'GPRE', 4, 1)
Modified: firebird/trunk/src/msgs/messages2.sql
===================================================================
--- firebird/trunk/src/msgs/messages2.sql	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/msgs/messages2.sql	2015-04-13 18:35:46 UTC (rev 61305)
@@ -890,6 +890,7 @@
 ('interface_version_too_old', NULL, 'Interface.h', NULL, 0, 780, NULL, 'Interface @3 version too old: expected @1, found @2', NULL, NULL);
 ('fun_param_mismatch', 'UdfCallNode::dsqlPass', 'ExprNode.cpp', NULL, 0, 781, NULL, 'Input parameter mismatch for function @1', NULL, NULL);
 ('savepoint_backout_err', 'VIO_verb_cleanup', 'vio.cpp', NULL, 0, 782, NULL, 'Error during savepoint backout - transaction invalidated', NULL, NULL);
+('domain_primary_key_notnull', NULL, 'DdlNodes.epp', NULL, 0, 783, NULL, 'Domain used in the PRIMARY KEY constraint of table @1 must be NOT NULL', NULL, NULL);
 -- QLI
 (NULL, NULL, NULL, NULL, 1, 0, NULL, 'expected type', NULL, NULL);
 (NULL, NULL, NULL, NULL, 1, 1, NULL, 'bad block type', NULL, NULL);
Modified: firebird/trunk/src/msgs/system_errors2.sql
===================================================================
--- firebird/trunk/src/msgs/system_errors2.sql	2015-04-13 18:21:57 UTC (rev 61304)
+++ firebird/trunk/src/msgs/system_errors2.sql	2015-04-13 18:35:46 UTC (rev 61305)
@@ -789,6 +789,7 @@
 (-804, 'HY', '000', 0, 780, 'interface_version_too_old', NULL, NULL)
 (-170, '07', '001', 0, 781, 'fun_param_mismatch', NULL, NULL)
 (-901, 'HY', '000', 0, 782, 'savepoint_backout_err', NULL, NULL)
+(-291, '42', '000', 0, 783, 'domain_primary_key_notnull', NULL, NULL)
 -- GFIX
 (-901, '00', '000', 3, 1, 'gfix_db_name', NULL, NULL)
 (-901, '00', '000', 3, 2, 'gfix_invalid_sw', NULL, NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-14 15:57:04
       
   | 
Revision: 61308
          http://sourceforge.net/p/firebird/code/61308
Author:   firebirds
Date:     2015-04-14 15:56:57 +0000 (Tue, 14 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-14 12:19:31 UTC (rev 61307)
+++ firebird/trunk/ChangeLog	2015-04-14 15:56:57 UTC (rev 61308)
@@ -1,3 +1,18 @@
+ 2015-04-13 18:35  asfernandes 
+   M lang_helpers/gds_codes.ftn
+   M lang_helpers/gds_codes.pas
+   M src/dsql/DdlNodes.epp
+   M src/include/gen/codetext.h
+   M src/include/gen/iberror.h
+   M src/include/gen/msgs.h
+   M src/include/gen/sql_code.h
+   M src/include/gen/sql_state.h
+   M src/jrd/trig.h
+   M src/msgs/facilities2.sql
+   M src/msgs/messages2.sql
+   M src/msgs/system_errors2.sql
+Fixed CORE-4725 - Inconsistencies with ALTER DOMAIN and ALTER TABLE with DROP NOT NULL and PRIMARY KEYs; Fixed some others problems with trailing spaces in object names in error messages.
+
  2015-04-12 21:05  asfernandes 
    M src/lock/print.cpp
 Revert "Remove duplicate lck enums." - broke Windows build as per Dmitry.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-14 12:19:31 UTC (rev 61307)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-14 15:56:57 UTC (rev 61308)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31785
+  FORMAL BUILD NUMBER:31786
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31785"
-#define FILE_VER_STRING "WI-T3.0.0.31785"
-#define LICENSE_VER_STRING "WI-T3.0.0.31785"
-#define FILE_VER_NUMBER 3, 0, 0, 31785
+#define PRODUCT_VER_STRING "3.0.0.31786"
+#define FILE_VER_STRING "WI-T3.0.0.31786"
+#define LICENSE_VER_STRING "WI-T3.0.0.31786"
+#define FILE_VER_NUMBER 3, 0, 0, 31786
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31785"
+#define FB_BUILD_NO "31786"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-14 12:19:31 UTC (rev 61307)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-14 15:56:57 UTC (rev 61308)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31785
+BuildNum=31786
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-15 14:54:22
       
   | 
Revision: 61326
          http://sourceforge.net/p/firebird/code/61326
Author:   firebirds
Date:     2015-04-15 14:54:19 +0000 (Wed, 15 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-15 14:01:24 UTC (rev 61325)
+++ firebird/trunk/ChangeLog	2015-04-15 14:54:19 UTC (rev 61326)
@@ -1,3 +1,18 @@
+ 2015-04-15 14:01  alexpeshkoff 
+   M src/jrd/vio.cpp
+Fixed CORE-4715: Restore of shadowed database fails using -k ("restore without shadow") switch
+
+ 2015-04-15 13:19  alexpeshkoff 
+   M src/jrd/irq.h
+   M src/jrd/scl.epp
+   M src/jrd/vio.cpp
+Fixed CORE-4731: Prohibit an ability to issue DML or DDL statements on RDB$ tables
+
+ 2015-04-14 17:00  alexpeshkoff 
+   M src/common/fb_exception.cpp
+   M src/include/fb_exception.h
+Fixed segfault caused when compiler used default copy ctor of status_exception
+
  2015-04-13 18:35  asfernandes 
    M lang_helpers/gds_codes.ftn
    M lang_helpers/gds_codes.pas
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-15 14:01:24 UTC (rev 61325)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-15 14:54:19 UTC (rev 61326)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31786
+  FORMAL BUILD NUMBER:31789
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31786"
-#define FILE_VER_STRING "WI-T3.0.0.31786"
-#define LICENSE_VER_STRING "WI-T3.0.0.31786"
-#define FILE_VER_NUMBER 3, 0, 0, 31786
+#define PRODUCT_VER_STRING "3.0.0.31789"
+#define FILE_VER_STRING "WI-T3.0.0.31789"
+#define LICENSE_VER_STRING "WI-T3.0.0.31789"
+#define FILE_VER_NUMBER 3, 0, 0, 31789
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31786"
+#define FB_BUILD_NO "31789"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-15 14:01:24 UTC (rev 61325)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-15 14:54:19 UTC (rev 61326)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31786
+BuildNum=31789
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-16 14:03:18
       
   | 
Revision: 61335
          http://sourceforge.net/p/firebird/code/61335
Author:   firebirds
Date:     2015-04-16 14:03:10 +0000 (Thu, 16 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-16 11:58:19 UTC (rev 61334)
+++ firebird/trunk/ChangeLog	2015-04-16 14:03:10 UTC (rev 61335)
@@ -1,3 +1,19 @@
+ 2015-04-16 11:58  alexpeshkoff 
+   M src/jrd/vio.cpp
+Postfix for CORE-4731
+
+ 2015-04-15 17:38  robocop 
+   M src/jrd/extds/InternalDS.cpp
+Misc.
+
+ 2015-04-15 16:59  hvlad 
+   M src/jrd/extds/InternalDS.cpp
+Fixed bug CORE-4747 : Error "invalid BLOB ID" can occur when retrieving MON$STATEMENTS.MON$SQL_TEXT using ES/EDS and db_connect argument is not specified
+
+ 2015-04-15 16:10  asfernandes 
+   M src/jrd/RecordSourceNodes.cpp
+More fixes for CORE-1605 - Bugcheck 232 (invalid operation) for an aggregated query.
+
  2015-04-15 14:01  alexpeshkoff 
    M src/jrd/vio.cpp
 Fixed CORE-4715: Restore of shadowed database fails using -k ("restore without shadow") switch
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-16 11:58:19 UTC (rev 61334)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-16 14:03:10 UTC (rev 61335)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31789
+  FORMAL BUILD NUMBER:31793
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31789"
-#define FILE_VER_STRING "WI-T3.0.0.31789"
-#define LICENSE_VER_STRING "WI-T3.0.0.31789"
-#define FILE_VER_NUMBER 3, 0, 0, 31789
+#define PRODUCT_VER_STRING "3.0.0.31793"
+#define FILE_VER_STRING "WI-T3.0.0.31793"
+#define LICENSE_VER_STRING "WI-T3.0.0.31793"
+#define FILE_VER_NUMBER 3, 0, 0, 31793
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31789"
+#define FB_BUILD_NO "31793"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-16 11:58:19 UTC (rev 61334)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-16 14:03:10 UTC (rev 61335)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31789
+BuildNum=31793
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-17 12:48:07
       
   | 
Revision: 61350
          http://sourceforge.net/p/firebird/code/61350
Author:   firebirds
Date:     2015-04-17 12:47:59 +0000 (Fri, 17 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-17 11:53:49 UTC (rev 61349)
+++ firebird/trunk/ChangeLog	2015-04-17 12:47:59 UTC (rev 61350)
@@ -1,3 +1,7 @@
+ 2015-04-16 14:50  asfernandes 
+   M src/remote/client/interface.cpp
+Warning.
+
  2015-04-16 11:58  alexpeshkoff 
    M src/jrd/vio.cpp
 Postfix for CORE-4731
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-17 11:53:49 UTC (rev 61349)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-17 12:47:59 UTC (rev 61350)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31793
+  FORMAL BUILD NUMBER:31794
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31793"
-#define FILE_VER_STRING "WI-T3.0.0.31793"
-#define LICENSE_VER_STRING "WI-T3.0.0.31793"
-#define FILE_VER_NUMBER 3, 0, 0, 31793
+#define PRODUCT_VER_STRING "3.0.0.31794"
+#define FILE_VER_STRING "WI-T3.0.0.31794"
+#define LICENSE_VER_STRING "WI-T3.0.0.31794"
+#define FILE_VER_NUMBER 3, 0, 0, 31794
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31793"
+#define FB_BUILD_NO "31794"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-17 11:53:49 UTC (rev 61349)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-17 12:47:59 UTC (rev 61350)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31793
+BuildNum=31794
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-18 11:48:16
       
   | 
Revision: 61358
          http://sourceforge.net/p/firebird/code/61358
Author:   firebirds
Date:     2015-04-18 11:48:09 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-18 10:51:24 UTC (rev 61357)
+++ firebird/trunk/ChangeLog	2015-04-18 11:48:09 UTC (rev 61358)
@@ -1,3 +1,18 @@
+ 2015-04-17 18:35  alexpeshkoff 
+   M src/common/IntlUtil.cpp
+   M src/common/IntlUtil.h
+   M src/common/classes/MetaName.cpp
+   M src/common/classes/MetaName.h
+   M src/dsql/DdlNodes.epp
+   M src/jrd/ini.epp
+   M src/jrd/jrd.cpp
+   M src/jrd/scl.epp
+Fixed CORE-4743: Granted role does not work with non-ascii username
+
+ 2015-04-17 13:27  hvlad 
+   M src/jrd/jrd.cpp
+Exceptions in getTransactionInterface() should be catched and traced too
+
  2015-04-16 14:50  asfernandes 
    M src/remote/client/interface.cpp
 Warning.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-18 10:51:24 UTC (rev 61357)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-18 11:48:09 UTC (rev 61358)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31794
+  FORMAL BUILD NUMBER:31796
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31794"
-#define FILE_VER_STRING "WI-T3.0.0.31794"
-#define LICENSE_VER_STRING "WI-T3.0.0.31794"
-#define FILE_VER_NUMBER 3, 0, 0, 31794
+#define PRODUCT_VER_STRING "3.0.0.31796"
+#define FILE_VER_STRING "WI-T3.0.0.31796"
+#define LICENSE_VER_STRING "WI-T3.0.0.31796"
+#define FILE_VER_NUMBER 3, 0, 0, 31796
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31794"
+#define FB_BUILD_NO "31796"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-18 10:51:24 UTC (rev 61357)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-18 11:48:09 UTC (rev 61358)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31794
+BuildNum=31796
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-18 23:59:05
       
   | 
Revision: 61360
          http://sourceforge.net/p/firebird/code/61360
Author:   firebirds
Date:     2015-04-18 23:59:02 +0000 (Sat, 18 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-18 19:19:12 UTC (rev 61359)
+++ firebird/trunk/ChangeLog	2015-04-18 23:59:02 UTC (rev 61360)
@@ -1,3 +1,7 @@
+ 2015-04-18 19:19  asfernandes 
+   M src/dsql/ExprNodes.cpp
+Fixed reintroduction of CORE-1379 per Pavel Zotov comment - Invalid parameter type when using it in CHAR_LENGTH function.
+
  2015-04-17 18:35  alexpeshkoff 
    M src/common/IntlUtil.cpp
    M src/common/IntlUtil.h
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-18 19:19:12 UTC (rev 61359)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-18 23:59:02 UTC (rev 61360)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31796
+  FORMAL BUILD NUMBER:31797
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31796"
-#define FILE_VER_STRING "WI-T3.0.0.31796"
-#define LICENSE_VER_STRING "WI-T3.0.0.31796"
-#define FILE_VER_NUMBER 3, 0, 0, 31796
+#define PRODUCT_VER_STRING "3.0.0.31797"
+#define FILE_VER_STRING "WI-T3.0.0.31797"
+#define LICENSE_VER_STRING "WI-T3.0.0.31797"
+#define FILE_VER_NUMBER 3, 0, 0, 31797
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31796"
+#define FB_BUILD_NO "31797"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-18 19:19:12 UTC (rev 61359)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-18 23:59:02 UTC (rev 61360)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31796
+BuildNum=31797
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-21 00:10:30
       
   | 
Revision: 61390
          http://sourceforge.net/p/firebird/code/61390
Author:   firebirds
Date:     2015-04-21 00:10:23 +0000 (Tue, 21 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-20 19:04:03 UTC (rev 61389)
+++ firebird/trunk/ChangeLog	2015-04-21 00:10:23 UTC (rev 61390)
@@ -1,3 +1,20 @@
+ 2015-04-20 17:04  alexpeshkoff 
+   M src/jrd/scl.epp
+Disabled use of system tables in foreign key constraints
+
+ 2015-04-20 15:07  alexpeshkoff 
+   M src/jrd/scl.epp
+Do not let SYSDBA modify structure of system tables
+
+ 2015-04-20 11:42  alexpeshkoff 
+   M src/jrd/vio.cpp
+Write-protect one more system relation
+
+ 2015-04-20 09:36  hvlad 
+   M src/jrd/pcmet.epp
+   M src/jrd/pcmet_proto.h
+Fixed bug CORE-4754 : Manipulations with GTT from several attachments (using ES/EDS and different roles) leads to: "internal Firebird consistency check (invalid SEND request (167), file: JrdStatement.cpp line: 325)"
+
  2015-04-18 19:19  asfernandes 
    M src/dsql/ExprNodes.cpp
 Fixed reintroduction of CORE-1379 per Pavel Zotov comment - Invalid parameter type when using it in CHAR_LENGTH function.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-20 19:04:03 UTC (rev 61389)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-21 00:10:23 UTC (rev 61390)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31797
+  FORMAL BUILD NUMBER:31801
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31797"
-#define FILE_VER_STRING "WI-T3.0.0.31797"
-#define LICENSE_VER_STRING "WI-T3.0.0.31797"
-#define FILE_VER_NUMBER 3, 0, 0, 31797
+#define PRODUCT_VER_STRING "3.0.0.31801"
+#define FILE_VER_STRING "WI-T3.0.0.31801"
+#define LICENSE_VER_STRING "WI-T3.0.0.31801"
+#define FILE_VER_NUMBER 3, 0, 0, 31801
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31797"
+#define FB_BUILD_NO "31801"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-20 19:04:03 UTC (rev 61389)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-21 00:10:23 UTC (rev 61390)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31797
+BuildNum=31801
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-22 00:17:59
       
   | 
Revision: 61406
          http://sourceforge.net/p/firebird/code/61406
Author:   firebirds
Date:     2015-04-22 00:17:57 +0000 (Wed, 22 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-21 19:33:48 UTC (rev 61405)
+++ firebird/trunk/ChangeLog	2015-04-22 00:17:57 UTC (rev 61406)
@@ -1,3 +1,21 @@
+ 2015-04-21 19:26  asfernandes 
+   M src/jrd/extds/InternalDS.cpp
+Misc.
+
+ 2015-04-21 19:26  asfernandes 
+   M src/jrd/blb.cpp
+Fixed CORE-4752 - EXECUTE STATEMENT using BLOB parameters results in "Invalid BLOB ID" error.
+
+ 2015-04-21 10:39  hvlad 
+   M src/jrd/btr.cpp
+Fixed bug CORE-4759 : request synchronization error when build expression index.
+
+ 2015-04-21 09:36  hvlad 
+   M src/common/isc_sync.cpp
+   M src/common/os/win32/isc_ipc.cpp
+Fixed bug CORE-4753 : Firebird hangs in embed mode.
+Removed annoying wrong assertion.
+
  2015-04-20 17:04  alexpeshkoff 
    M src/jrd/scl.epp
 Disabled use of system tables in foreign key constraints
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-21 19:33:48 UTC (rev 61405)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-22 00:17:57 UTC (rev 61406)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31801
+  FORMAL BUILD NUMBER:31805
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31801"
-#define FILE_VER_STRING "WI-T3.0.0.31801"
-#define LICENSE_VER_STRING "WI-T3.0.0.31801"
-#define FILE_VER_NUMBER 3, 0, 0, 31801
+#define PRODUCT_VER_STRING "3.0.0.31805"
+#define FILE_VER_STRING "WI-T3.0.0.31805"
+#define LICENSE_VER_STRING "WI-T3.0.0.31805"
+#define FILE_VER_NUMBER 3, 0, 0, 31805
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31801"
+#define FB_BUILD_NO "31805"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-21 19:33:48 UTC (rev 61405)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-22 00:17:57 UTC (rev 61406)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31801
+BuildNum=31805
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-23 00:17:14
       
   | 
Revision: 61419
          http://sourceforge.net/p/firebird/code/61419
Author:   firebirds
Date:     2015-04-23 00:17:11 +0000 (Thu, 23 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-22 18:50:47 UTC (rev 61418)
+++ firebird/trunk/ChangeLog	2015-04-23 00:17:11 UTC (rev 61419)
@@ -1,3 +1,13 @@
+ 2015-04-22 17:02  alexpeshkoff 
+   M src/common/config/config_file.cpp
+   M src/common/config/config_file.h
+   M src/jrd/UserManagement.cpp
+Fixed CORE-4767: CREATE USER ... TAGS ( attr = "prefix #suffix" ): "suffix" will be removed from storage because of character # in the value of attribute
+
+ 2015-04-22 11:03  hvlad 
+   M src/jrd/extds/InternalDS.cpp
+Fixed bug CORE-4766 :  AV when trying to manage users list using EXECUTE STATEMENT on behalf of non-sysdba user which has RDB$ADMIN role
+
  2015-04-21 19:26  asfernandes 
    M src/jrd/extds/InternalDS.cpp
 Misc.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-22 18:50:47 UTC (rev 61418)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-23 00:17:11 UTC (rev 61419)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31805
+  FORMAL BUILD NUMBER:31807
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31805"
-#define FILE_VER_STRING "WI-T3.0.0.31805"
-#define LICENSE_VER_STRING "WI-T3.0.0.31805"
-#define FILE_VER_NUMBER 3, 0, 0, 31805
+#define PRODUCT_VER_STRING "3.0.0.31807"
+#define FILE_VER_STRING "WI-T3.0.0.31807"
+#define LICENSE_VER_STRING "WI-T3.0.0.31807"
+#define FILE_VER_NUMBER 3, 0, 0, 31807
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31805"
+#define FB_BUILD_NO "31807"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-22 18:50:47 UTC (rev 61418)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-23 00:17:11 UTC (rev 61419)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31805
+BuildNum=31807
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-25 00:16:31
       
   | 
Revision: 61429
          http://sourceforge.net/p/firebird/code/61429
Author:   firebirds
Date:     2015-04-25 00:16:24 +0000 (Sat, 25 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-24 19:03:05 UTC (rev 61428)
+++ firebird/trunk/ChangeLog	2015-04-25 00:16:24 UTC (rev 61429)
@@ -1,3 +1,17 @@
+ 2015-04-24 17:48  alexpeshkoff 
+   M src/jrd/UserManagement.cpp
+rolled back accidentially committed debug code
+
+ 2015-04-24 17:47  alexpeshkoff 
+   M src/jrd/UserManagement.cpp
+   M src/jrd/vio.cpp
+Make it possible for DBA only to NULLify sources
+
+ 2015-04-24 13:07  alexpeshkoff 
+   M src/auth/SecureRemotePassword/manage/SrpManagement.cpp
+   M src/jrd/jrd.cpp
+Fixed CORE-4768: CREATE USER ... TAGS ( argument_1 = 'value1', ..., argument_N = 'valueN' ) - wrong results of statement when there are many arguments
+
  2015-04-22 17:02  alexpeshkoff 
    M src/common/config/config_file.cpp
    M src/common/config/config_file.h
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-24 19:03:05 UTC (rev 61428)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-25 00:16:24 UTC (rev 61429)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31807
+  FORMAL BUILD NUMBER:31810
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31807"
-#define FILE_VER_STRING "WI-T3.0.0.31807"
-#define LICENSE_VER_STRING "WI-T3.0.0.31807"
-#define FILE_VER_NUMBER 3, 0, 0, 31807
+#define PRODUCT_VER_STRING "3.0.0.31810"
+#define FILE_VER_STRING "WI-T3.0.0.31810"
+#define LICENSE_VER_STRING "WI-T3.0.0.31810"
+#define FILE_VER_NUMBER 3, 0, 0, 31810
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31807"
+#define FB_BUILD_NO "31810"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-24 19:03:05 UTC (rev 61428)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-25 00:16:24 UTC (rev 61429)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31807
+BuildNum=31810
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-28 00:26:46
       
   | 
Revision: 61460
          http://sourceforge.net/p/firebird/code/61460
Author:   firebirds
Date:     2015-04-28 00:26:44 +0000 (Tue, 28 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-27 18:58:36 UTC (rev 61459)
+++ firebird/trunk/ChangeLog	2015-04-28 00:26:44 UTC (rev 61460)
@@ -1,3 +1,16 @@
+ 2015-04-27 18:58  asfernandes 
+   M src/dsql/ExprNodes.cpp
+Fixed CORE-4774 - Table aliasing is unnecessary required when doing UPDATE ... RETURNING RDB$ pseudo-columns.
+
+ 2015-04-27 13:15  alexpeshkoff 
+   M src/jrd/vio.cpp
+Check for source nullifying a bit more accurate
+
+ 2015-04-27 04:44  robocop 
+   M src/auth/SecureRemotePassword/manage/SrpManagement.cpp
+   M src/jrd/jrd.cpp
+Misc.
+
  2015-04-24 17:48  alexpeshkoff 
    M src/jrd/UserManagement.cpp
 rolled back accidentially committed debug code
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-27 18:58:36 UTC (rev 61459)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-28 00:26:44 UTC (rev 61460)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31810
+  FORMAL BUILD NUMBER:31813
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31810"
-#define FILE_VER_STRING "WI-T3.0.0.31810"
-#define LICENSE_VER_STRING "WI-T3.0.0.31810"
-#define FILE_VER_NUMBER 3, 0, 0, 31810
+#define PRODUCT_VER_STRING "3.0.0.31813"
+#define FILE_VER_STRING "WI-T3.0.0.31813"
+#define LICENSE_VER_STRING "WI-T3.0.0.31813"
+#define FILE_VER_NUMBER 3, 0, 0, 31813
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31810"
+#define FB_BUILD_NO "31813"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-27 18:58:36 UTC (rev 61459)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-28 00:26:44 UTC (rev 61460)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31810
+BuildNum=31813
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <asf...@us...> - 2015-04-29 15:59:49
       
   | 
Revision: 61465
          http://sourceforge.net/p/firebird/code/61465
Author:   asfernandes
Date:     2015-04-29 15:59:46 +0000 (Wed, 29 Apr 2015)
Log Message:
-----------
Fixed CORE-4755 - Parameterized exception: wrong output when number of arguments greater than 7.
Modified Paths:
--------------
    firebird/trunk/doc/sql.extensions/README.exception_handling
    firebird/trunk/lang_helpers/gds_codes.ftn
    firebird/trunk/lang_helpers/gds_codes.pas
    firebird/trunk/src/common/classes/SafeArg.h
    firebird/trunk/src/dsql/StmtNodes.cpp
    firebird/trunk/src/include/gen/codetext.h
    firebird/trunk/src/include/gen/iberror.h
    firebird/trunk/src/include/gen/msgs.h
    firebird/trunk/src/include/gen/sql_code.h
    firebird/trunk/src/include/gen/sql_state.h
    firebird/trunk/src/msgs/facilities2.sql
    firebird/trunk/src/msgs/messages2.sql
    firebird/trunk/src/msgs/system_errors2.sql
Modified: firebird/trunk/doc/sql.extensions/README.exception_handling
===================================================================
--- firebird/trunk/doc/sql.extensions/README.exception_handling	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/doc/sql.extensions/README.exception_handling	2015-04-29 15:59:46 UTC (rev 61465)
@@ -101,6 +101,10 @@
     end
 
   Notes:
+    The maximum number of arguments passed is 10.
+
+    In the exception message, @NN (example: @10) is considered as @1 followed by the literal 0.
+
     The status vector is generated using these codes combination:
       isc_except, <exception number>,
       isc_formatted_exception, <formatted exception message>, <exception parameters>
Modified: firebird/trunk/lang_helpers/gds_codes.ftn
===================================================================
--- firebird/trunk/lang_helpers/gds_codes.ftn	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/lang_helpers/gds_codes.ftn	2015-04-29 15:59:46 UTC (rev 61465)
@@ -2330,6 +2330,8 @@
       PARAMETER (GDS__dsql_wlock_aggregates            = 336397328)
       INTEGER*4 GDS__dsql_wlock_conflict             
       PARAMETER (GDS__dsql_wlock_conflict              = 336397329)
+      INTEGER*4 GDS__dsql_max_exception_arguments    
+      PARAMETER (GDS__dsql_max_exception_arguments     = 336397330)
       INTEGER*4 GDS__gsec_cant_open_db               
       PARAMETER (GDS__gsec_cant_open_db                = 336723983)
       INTEGER*4 GDS__gsec_switches_error             
Modified: firebird/trunk/lang_helpers/gds_codes.pas
===================================================================
--- firebird/trunk/lang_helpers/gds_codes.pas	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/lang_helpers/gds_codes.pas	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1172,6 +1172,7 @@
 	gds_dsql_firstskip_rows              = 336397327;
 	gds_dsql_wlock_aggregates            = 336397328;
 	gds_dsql_wlock_conflict              = 336397329;
+	gds_dsql_max_exception_arguments     = 336397330;
 	gds_gsec_cant_open_db                = 336723983;
 	gds_gsec_switches_error              = 336723984;
 	gds_gsec_no_op_spec                  = 336723985;
Modified: firebird/trunk/src/common/classes/SafeArg.h
===================================================================
--- firebird/trunk/src/common/classes/SafeArg.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/common/classes/SafeArg.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -64,8 +64,8 @@
 namespace MsgFormat
 {
 
-// For now we allow 7 parameters; @1..@7 in MsgPrint.
-const FB_SIZE_T SAFEARG_MAX_ARG = 7;
+// For now we allow 9 parameters; @1..@9 in MsgPrint.
+const FB_SIZE_T SAFEARG_MAX_ARG = 9;
 
 // This is the unit that represents one parameter in the format routines.
 // The user of the routines rarely needs to be concerned with it.
Modified: firebird/trunk/src/dsql/StmtNodes.cpp
===================================================================
--- firebird/trunk/src/dsql/StmtNodes.cpp	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/dsql/StmtNodes.cpp	2015-04-29 15:59:46 UTC (rev 61465)
@@ -4060,6 +4060,14 @@
 
 StmtNode* ExceptionNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
 {
+	if (parameters && parameters->items.getCount() > MsgFormat::SAFEARG_MAX_ARG)
+	{
+		status_exception::raise(
+			Arg::Gds(isc_dsql_max_exception_arguments) <<
+				Arg::Num(parameters->items.getCount()) <<
+				Arg::Num(MsgFormat::SAFEARG_MAX_ARG));
+	}
+
 	ExceptionNode* node = FB_NEW(getPool()) ExceptionNode(getPool());
 	if (exception)
 		node->exception = FB_NEW(getPool()) ExceptionItem(getPool(), *exception);
Modified: firebird/trunk/src/include/gen/codetext.h
===================================================================
--- firebird/trunk/src/include/gen/codetext.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/include/gen/codetext.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1161,6 +1161,7 @@
 	{"dsql_firstskip_rows", 336397327},
 	{"dsql_wlock_aggregates", 336397328},
 	{"dsql_wlock_conflict", 336397329},
+	{"dsql_max_exception_arguments", 336397330},
 	{"gsec_cant_open_db", 336723983},
 	{"gsec_switches_error", 336723984},
 	{"gsec_no_op_spec", 336723985},
Modified: firebird/trunk/src/include/gen/iberror.h
===================================================================
--- firebird/trunk/src/include/gen/iberror.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/include/gen/iberror.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1195,6 +1195,7 @@
 const ISC_STATUS isc_dsql_firstskip_rows              = 336397327L;
 const ISC_STATUS isc_dsql_wlock_aggregates            = 336397328L;
 const ISC_STATUS isc_dsql_wlock_conflict              = 336397329L;
+const ISC_STATUS isc_dsql_max_exception_arguments     = 336397330L;
 const ISC_STATUS isc_gsec_cant_open_db                = 336723983L;
 const ISC_STATUS isc_gsec_switches_error              = 336723984L;
 const ISC_STATUS isc_gsec_no_op_spec                  = 336723985L;
@@ -1297,7 +1298,7 @@
 const ISC_STATUS isc_trace_switch_param_miss          = 337182758L;
 const ISC_STATUS isc_trace_param_act_notcompat        = 337182759L;
 const ISC_STATUS isc_trace_mandatory_switch_miss      = 337182760L;
-const ISC_STATUS isc_err_max                          = 1241;
+const ISC_STATUS isc_err_max                          = 1242;
 
 #else /* c definitions */
 
@@ -2462,6 +2463,7 @@
 #define isc_dsql_firstskip_rows              336397327L
 #define isc_dsql_wlock_aggregates            336397328L
 #define isc_dsql_wlock_conflict              336397329L
+#define isc_dsql_max_exception_arguments     336397330L
 #define isc_gsec_cant_open_db                336723983L
 #define isc_gsec_switches_error              336723984L
 #define isc_gsec_no_op_spec                  336723985L
@@ -2564,7 +2566,7 @@
 #define isc_trace_switch_param_miss          337182758L
 #define isc_trace_param_act_notcompat        337182759L
 #define isc_trace_mandatory_switch_miss      337182760L
-#define isc_err_max                          1241
+#define isc_err_max                          1242
 
 #endif
 
Modified: firebird/trunk/src/include/gen/msgs.h
===================================================================
--- firebird/trunk/src/include/gen/msgs.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/include/gen/msgs.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1164,6 +1164,7 @@
 	{336397327, "FIRST/SKIP cannot be used with OFFSET/FETCH or ROWS"},		/* dsql_firstskip_rows */
 	{336397328, "WITH LOCK cannot be used with aggregates"},		/* dsql_wlock_aggregates */
 	{336397329, "WITH LOCK cannot be used with @1"},		/* dsql_wlock_conflict */
+	{336397330, "Number of arguments (@1) exceeds the maximum (@2) number of EXCEPTION USING arguments"},		/* dsql_max_exception_arguments */
 	{336723983, "unable to open database"},		/* gsec_cant_open_db */
 	{336723984, "error in switch specifications"},		/* gsec_switches_error */
 	{336723985, "no operation specified"},		/* gsec_no_op_spec */
Modified: firebird/trunk/src/include/gen/sql_code.h
===================================================================
--- firebird/trunk/src/include/gen/sql_code.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/include/gen/sql_code.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1160,6 +1160,7 @@
 	{336397327, -104}, /* 1039 dsql_firstskip_rows */
 	{336397328, -104}, /* 1040 dsql_wlock_aggregates */
 	{336397329, -104}, /* 1041 dsql_wlock_conflict */
+	{336397330, -901}, /* 1042 dsql_max_exception_arguments */
 	{336723983, -901}, /*  15 gsec_cant_open_db */
 	{336723984, -901}, /*  16 gsec_switches_error */
 	{336723985, -901}, /*  17 gsec_no_op_spec */
Modified: firebird/trunk/src/include/gen/sql_state.h
===================================================================
--- firebird/trunk/src/include/gen/sql_state.h	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/include/gen/sql_state.h	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1160,6 +1160,7 @@
 	{336397327, "42000"}, // 1039 dsql_firstskip_rows
 	{336397328, "42000"}, // 1040 dsql_wlock_aggregates
 	{336397329, "42000"}, // 1041 dsql_wlock_conflict
+	{336397330, "07002"}, // 1042 dsql_max_exception_arguments
 	{336723983, "00000"}, //  15 gsec_cant_open_db
 	{336723984, "00000"}, //  16 gsec_switches_error
 	{336723985, "00000"}, //  17 gsec_no_op_spec
Modified: firebird/trunk/src/msgs/facilities2.sql
===================================================================
--- firebird/trunk/src/msgs/facilities2.sql	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/msgs/facilities2.sql	2015-04-29 15:59:46 UTC (rev 61465)
@@ -10,7 +10,7 @@
 ('1996-11-07 13:39:40', 'INSTALL', 10, 1)
 ('1996-11-07 13:38:41', 'TEST', 11, 4)
 ('2014-05-09 01:30:36', 'GBAK', 12, 361)
-('2014-05-02 19:19:51', 'SQLERR', 13, 1042)
+('2015-04-29 12:27:00', 'SQLERR', 13, 1043)
 ('1996-11-07 13:38:42', 'SQLWARN', 14, 613)
 ('2006-09-10 03:04:31', 'JRD_BUGCHK', 15, 307)
 ('2014-05-07 03:04:46', 'ISQL', 17, 190)
Modified: firebird/trunk/src/msgs/messages2.sql
===================================================================
--- firebird/trunk/src/msgs/messages2.sql	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/msgs/messages2.sql	2015-04-29 15:59:46 UTC (rev 61465)
@@ -2617,6 +2617,7 @@
 ('dsql_firstskip_rows', 'pass1_rse_impl', 'pass1.cpp', NULL, 13, 1039, NULL, 'FIRST/SKIP cannot be used with OFFSET/FETCH or ROWS', NULL, NULL);
 ('dsql_wlock_aggregates', 'pass1_rse_impl', 'pass1.cpp', NULL, 13, 1040, NULL, 'WITH LOCK cannot be used with aggregates', NULL, NULL);
 ('dsql_wlock_conflict', NULL, 'pass1.cpp', NULL, 13, 1041, NULL, 'WITH LOCK cannot be used with @1', NULL, NULL);
+('dsql_max_exception_arguments', NULL, 'StmtNodes.cpp', NULL, 13, 1042, NULL, 'Number of arguments (@1) exceeds the maximum (@2) number of EXCEPTION USING arguments', NULL, NULL);
 -- SQLWARN
 (NULL, NULL, NULL, NULL, 14, 100, NULL, 'Row not found for fetch, update or delete, or the result of a query is an empty table.', NULL, NULL);
 (NULL, NULL, NULL, NULL, 14, 101, NULL, 'segment buffer length shorter than expected', NULL, NULL);
Modified: firebird/trunk/src/msgs/system_errors2.sql
===================================================================
--- firebird/trunk/src/msgs/system_errors2.sql	2015-04-29 05:01:38 UTC (rev 61464)
+++ firebird/trunk/src/msgs/system_errors2.sql	2015-04-29 15:59:46 UTC (rev 61465)
@@ -1154,6 +1154,7 @@
 (-104, '42', '000', 13, 1039, 'dsql_firstskip_rows', NULL, NULL)
 (-104, '42', '000', 13, 1040, 'dsql_wlock_aggregates', NULL, NULL)
 (-104, '42', '000', 13, 1041, 'dsql_wlock_conflict', NULL, NULL)
+(-901, '07', '002', 13, 1042, 'dsql_max_exception_arguments', NULL, NULL)
 -- GSEC
 (-901, '00', '000', 18, 15, 'gsec_cant_open_db', NULL, NULL)
 (-901, '00', '000', 18, 16, 'gsec_switches_error', NULL, NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-04-30 00:09:48
       
   | 
Revision: 61466
          http://sourceforge.net/p/firebird/code/61466
Author:   firebirds
Date:     2015-04-30 00:09:45 +0000 (Thu, 30 Apr 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-29 15:59:46 UTC (rev 61465)
+++ firebird/trunk/ChangeLog	2015-04-30 00:09:45 UTC (rev 61466)
@@ -1,3 +1,19 @@
+ 2015-04-29 15:59  asfernandes 
+   M doc/sql.extensions/README.exception_handling
+   M lang_helpers/gds_codes.ftn
+   M lang_helpers/gds_codes.pas
+   M src/common/classes/SafeArg.h
+   M src/dsql/StmtNodes.cpp
+   M src/include/gen/codetext.h
+   M src/include/gen/iberror.h
+   M src/include/gen/msgs.h
+   M src/include/gen/sql_code.h
+   M src/include/gen/sql_state.h
+   M src/msgs/facilities2.sql
+   M src/msgs/messages2.sql
+   M src/msgs/system_errors2.sql
+Fixed CORE-4755 - Parameterized exception: wrong output when number of arguments greater than 7.
+
  2015-04-27 18:58  asfernandes 
    M src/dsql/ExprNodes.cpp
 Fixed CORE-4774 - Table aliasing is unnecessary required when doing UPDATE ... RETURNING RDB$ pseudo-columns.
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-29 15:59:46 UTC (rev 61465)
+++ firebird/trunk/src/jrd/build_no.h	2015-04-30 00:09:45 UTC (rev 61466)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31813
+  FORMAL BUILD NUMBER:31814
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31813"
-#define FILE_VER_STRING "WI-T3.0.0.31813"
-#define LICENSE_VER_STRING "WI-T3.0.0.31813"
-#define FILE_VER_NUMBER 3, 0, 0, 31813
+#define PRODUCT_VER_STRING "3.0.0.31814"
+#define FILE_VER_STRING "WI-T3.0.0.31814"
+#define LICENSE_VER_STRING "WI-T3.0.0.31814"
+#define FILE_VER_NUMBER 3, 0, 0, 31814
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31813"
+#define FB_BUILD_NO "31814"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-29 15:59:46 UTC (rev 61465)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-04-30 00:09:45 UTC (rev 61466)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31813
+BuildNum=31814
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <asf...@us...> - 2015-04-30 15:56:50
       
   | 
Revision: 61471
          http://sourceforge.net/p/firebird/code/61471
Author:   asfernandes
Date:     2015-04-30 15:56:47 +0000 (Thu, 30 Apr 2015)
Log Message:
-----------
Fixed CORE-3234 - Support for text BLOBs >= 32K as first argument for TRIM().
Modified Paths:
--------------
    firebird/trunk/doc/WhatsNew
    firebird/trunk/src/dsql/ExprNodes.cpp
Modified: firebird/trunk/doc/WhatsNew
===================================================================
--- firebird/trunk/doc/WhatsNew	2015-04-30 15:24:12 UTC (rev 61470)
+++ firebird/trunk/doc/WhatsNew	2015-04-30 15:56:47 UTC (rev 61471)
@@ -296,6 +296,11 @@
       Contributor(s):
         Dmitry Yemanov <dimitr at firebirdsql.org>
 
+    * Improvement CORE-3234
+        Support for text BLOBs >= 32K as first argument for TRIM()
+      Contributor(s):
+        Adriano dos Santos Fernandes <adrianosf at gmail.com>
+
     * Improvement CORE-3226
         IPv6 support
       Contributor(s):
@@ -1845,11 +1850,6 @@
       Contributor(s):
         Alex Peshkov <peshkoff at mail.ru>
 
-    * Improvement CORE-3234
-        Support for text BLOBs >= 32K as first argument for TRIM()
-      Contributor(s):
-        Adriano dos Santos Fernandes <adrianosf at gmail.com>
-
     * Improvement CORE-3085
         Add clause ALTER DOMAIN <name> {DROP | SET} NOT NULL
       See also:
Modified: firebird/trunk/src/dsql/ExprNodes.cpp
===================================================================
--- firebird/trunk/src/dsql/ExprNodes.cpp	2015-04-30 15:24:12 UTC (rev 61470)
+++ firebird/trunk/src/dsql/ExprNodes.cpp	2015-04-30 15:56:47 UTC (rev 61471)
@@ -10307,7 +10307,7 @@
 
 	const UCHAR* charactersAddress;
 	MoveBuffer charactersBuffer;
-	USHORT charactersLength;
+	ULONG charactersLength;
 
 	if (trimCharsDesc)
 	{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 | 
| 
     
      
      
      From: <fir...@us...> - 2015-05-01 00:10:23
       
   | 
Revision: 61473
          http://sourceforge.net/p/firebird/code/61473
Author:   firebirds
Date:     2015-05-01 00:10:20 +0000 (Fri, 01 May 2015)
Log Message:
-----------
nightly update
Modified Paths:
--------------
    firebird/trunk/ChangeLog
    firebird/trunk/src/jrd/build_no.h
    firebird/trunk/src/misc/writeBuildNum.sh
Modified: firebird/trunk/ChangeLog
===================================================================
--- firebird/trunk/ChangeLog	2015-04-30 18:09:50 UTC (rev 61472)
+++ firebird/trunk/ChangeLog	2015-05-01 00:10:20 UTC (rev 61473)
@@ -1,3 +1,28 @@
+ 2015-04-30 15:56  asfernandes 
+   M doc/WhatsNew
+   M src/dsql/ExprNodes.cpp
+Fixed CORE-3234 - Support for text BLOBs >= 32K as first argument for TRIM().
+
+ 2015-04-30 15:24  asfernandes 
+   M doc/sql.extensions/README.exception_handling
+Correction - thanks to Simonov Denis.
+
+ 2015-04-30 14:42  alexpeshkoff 
+   M src/common/classes/Aligner.h
+   M src/common/isc_file.cpp
+postfix for CORE-4760: take care about RISC CPUs
+
+ 2015-04-30 13:44  alexpeshkoff 
+   M src/auth/SecurityDatabase/LegacyServer.cpp
+   M src/common/isc_f_proto.h
+   M src/common/isc_file.cpp
+   A src/common/unicodeUpper.cpp
+   A src/common/unicodeUpper.h
+   M src/dsql/DdlNodes.epp
+   M src/dsql/DdlNodes.h
+   M src/remote/client/interface.cpp
+Fixed CORE-4760: Can not create user with non-ascii (multi-byte) characters in the name
+
  2015-04-29 15:59  asfernandes 
    M doc/sql.extensions/README.exception_handling
    M lang_helpers/gds_codes.ftn
Modified: firebird/trunk/src/jrd/build_no.h
===================================================================
--- firebird/trunk/src/jrd/build_no.h	2015-04-30 18:09:50 UTC (rev 61472)
+++ firebird/trunk/src/jrd/build_no.h	2015-05-01 00:10:20 UTC (rev 61473)
@@ -3,16 +3,16 @@
                *** DO NOT EDIT ***
   TO CHANGE ANY INFORMATION IN HERE PLEASE
   EDIT src/misc/writeBuildNum.sh
-  FORMAL BUILD NUMBER:31814
+  FORMAL BUILD NUMBER:31818
 */
 
-#define PRODUCT_VER_STRING "3.0.0.31814"
-#define FILE_VER_STRING "WI-T3.0.0.31814"
-#define LICENSE_VER_STRING "WI-T3.0.0.31814"
-#define FILE_VER_NUMBER 3, 0, 0, 31814
+#define PRODUCT_VER_STRING "3.0.0.31818"
+#define FILE_VER_STRING "WI-T3.0.0.31818"
+#define LICENSE_VER_STRING "WI-T3.0.0.31818"
+#define FILE_VER_NUMBER 3, 0, 0, 31818
 #define FB_MAJOR_VER "3"
 #define FB_MINOR_VER "0"
 #define FB_REV_NO "0"
-#define FB_BUILD_NO "31814"
+#define FB_BUILD_NO "31818"
 #define FB_BUILD_TYPE "T"
 #define FB_BUILD_SUFFIX "Firebird 3.0 Beta 2"
Modified: firebird/trunk/src/misc/writeBuildNum.sh
===================================================================
--- firebird/trunk/src/misc/writeBuildNum.sh	2015-04-30 18:09:50 UTC (rev 61472)
+++ firebird/trunk/src/misc/writeBuildNum.sh	2015-05-01 00:10:20 UTC (rev 61473)
@@ -9,7 +9,7 @@
 MajorVer=3
 MinorVer=0
 RevNo=0
-BuildNum=31814
+BuildNum=31818
 
 NowAt=`pwd`
 cd `dirname $0`
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |