You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(24) |
Oct
(37) |
Nov
(42) |
Dec
(29) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(24) |
Feb
(24) |
Mar
(15) |
Apr
(55) |
May
(99) |
Jun
(70) |
Jul
(197) |
Aug
(329) |
Sep
(81) |
Oct
(141) |
Nov
(100) |
Dec
(157) |
2002 |
Jan
(96) |
Feb
(216) |
Mar
(78) |
Apr
(103) |
May
(29) |
Jun
(193) |
Jul
(130) |
Aug
(215) |
Sep
(262) |
Oct
(655) |
Nov
(1009) |
Dec
(655) |
2003 |
Jan
(413) |
Feb
(939) |
Mar
(527) |
Apr
(538) |
May
(439) |
Jun
(295) |
Jul
(681) |
Aug
(810) |
Sep
(835) |
Oct
(730) |
Nov
(988) |
Dec
(787) |
2004 |
Jan
(559) |
Feb
(480) |
Mar
(749) |
Apr
(565) |
May
(748) |
Jun
(529) |
Jul
(454) |
Aug
(714) |
Sep
(628) |
Oct
(857) |
Nov
(1153) |
Dec
(617) |
2005 |
Jan
(603) |
Feb
(444) |
Mar
(377) |
Apr
(579) |
May
(664) |
Jun
(407) |
Jul
(363) |
Aug
(326) |
Sep
(527) |
Oct
(522) |
Nov
(387) |
Dec
(540) |
2006 |
Jan
(355) |
Feb
(242) |
Mar
(563) |
Apr
(768) |
May
(482) |
Jun
(427) |
Jul
(440) |
Aug
(314) |
Sep
(299) |
Oct
(403) |
Nov
(333) |
Dec
(389) |
2007 |
Jan
(247) |
Feb
(335) |
Mar
(391) |
Apr
(562) |
May
(345) |
Jun
(202) |
Jul
(239) |
Aug
(288) |
Sep
(510) |
Oct
(320) |
Nov
(487) |
Dec
(387) |
2008 |
Jan
(575) |
Feb
(539) |
Mar
(762) |
Apr
(648) |
May
(625) |
Jun
(522) |
Jul
(382) |
Aug
(191) |
Sep
(426) |
Oct
(231) |
Nov
(305) |
Dec
(670) |
2009 |
Jan
(582) |
Feb
(595) |
Mar
(294) |
Apr
(461) |
May
(445) |
Jun
(597) |
Jul
(408) |
Aug
(542) |
Sep
(476) |
Oct
(437) |
Nov
(587) |
Dec
(722) |
2010 |
Jan
(456) |
Feb
(319) |
Mar
(437) |
Apr
(303) |
May
(276) |
Jun
(233) |
Jul
(155) |
Aug
(208) |
Sep
(136) |
Oct
(274) |
Nov
(241) |
Dec
(106) |
2011 |
Jan
(160) |
Feb
(244) |
Mar
(138) |
Apr
(235) |
May
(208) |
Jun
(196) |
Jul
(107) |
Aug
(77) |
Sep
(109) |
Oct
(165) |
Nov
(86) |
Dec
(211) |
2012 |
Jan
(188) |
Feb
(136) |
Mar
(273) |
Apr
(185) |
May
(149) |
Jun
(146) |
Jul
(73) |
Aug
(127) |
Sep
(103) |
Oct
(87) |
Nov
(159) |
Dec
(149) |
2013 |
Jan
(74) |
Feb
(112) |
Mar
(176) |
Apr
(139) |
May
(116) |
Jun
(160) |
Jul
(161) |
Aug
(124) |
Sep
(124) |
Oct
(82) |
Nov
(137) |
Dec
(128) |
2014 |
Jan
(116) |
Feb
(121) |
Mar
(134) |
Apr
(177) |
May
(146) |
Jun
(158) |
Jul
(154) |
Aug
(79) |
Sep
(60) |
Oct
(90) |
Nov
(184) |
Dec
(201) |
2015 |
Jan
(163) |
Feb
(263) |
Mar
(406) |
Apr
(291) |
May
(213) |
Jun
(229) |
Jul
(229) |
Aug
(111) |
Sep
(120) |
Oct
(234) |
Nov
(155) |
Dec
(153) |
2016 |
Jan
(147) |
Feb
(188) |
Mar
(363) |
Apr
(304) |
May
(199) |
Jun
(218) |
Jul
(136) |
Aug
(128) |
Sep
(120) |
Oct
(123) |
Nov
(102) |
Dec
(156) |
2017 |
Jan
(123) |
Feb
(114) |
Mar
(132) |
Apr
(44) |
May
(143) |
Jun
(83) |
Jul
(98) |
Aug
(59) |
Sep
(58) |
Oct
(12) |
Nov
(14) |
Dec
(16) |
2018 |
Jan
(18) |
Feb
(24) |
Mar
(41) |
Apr
(16) |
May
(19) |
Jun
(31) |
Jul
(3) |
Aug
(33) |
Sep
(11) |
Oct
(11) |
Nov
|
Dec
|
2019 |
Jan
(21) |
Feb
(66) |
Mar
(72) |
Apr
(69) |
May
(63) |
Jun
(49) |
Jul
(55) |
Aug
(38) |
Sep
(66) |
Oct
(51) |
Nov
(66) |
Dec
(97) |
2020 |
Jan
(98) |
Feb
(95) |
Mar
(83) |
Apr
(121) |
May
(91) |
Jun
(137) |
Jul
(94) |
Aug
(91) |
Sep
(60) |
Oct
(81) |
Nov
(82) |
Dec
(64) |
2021 |
Jan
(66) |
Feb
(50) |
Mar
(52) |
Apr
(110) |
May
(160) |
Jun
(94) |
Jul
(97) |
Aug
(99) |
Sep
(160) |
Oct
(118) |
Nov
(117) |
Dec
(119) |
2022 |
Jan
(90) |
Feb
(93) |
Mar
(75) |
Apr
(70) |
May
(61) |
Jun
(153) |
Jul
(82) |
Aug
(118) |
Sep
(127) |
Oct
(121) |
Nov
(78) |
Dec
(84) |
2023 |
Jan
(80) |
Feb
(75) |
Mar
(92) |
Apr
(103) |
May
(89) |
Jun
(89) |
Jul
(106) |
Aug
(87) |
Sep
(183) |
Oct
(128) |
Nov
(173) |
Dec
(116) |
2024 |
Jan
(144) |
Feb
(120) |
Mar
(113) |
Apr
(107) |
May
(84) |
Jun
(95) |
Jul
(100) |
Aug
(135) |
Sep
(119) |
Oct
(93) |
Nov
(91) |
Dec
(93) |
2025 |
Jan
(104) |
Feb
(165) |
Mar
(120) |
Apr
(124) |
May
(90) |
Jun
(141) |
Jul
(239) |
Aug
(42) |
Sep
|
Oct
|
Nov
|
Dec
|
From: John B. <bel...@us...> - 2001-06-05 19:44:00
|
Update of /cvsroot/firebird/interbase/jrd In directory usw-pr-cvs1:/tmp/cvs-serv20803/jrd Modified Files: common.h dyn.e isc_sync.c Log Message: Changes to the build system to allow Darwin classic to compile given other platform constraints. Also included changes to allow Darwin SS to compile. Index: common.h =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/common.h,v retrieving revision 1.8 retrieving revision 1.9 diff -U3 -r1.8 -r1.9 --- common.h 2001/05/24 04:11:11 1.8 +++ common.h 2001/06/05 19:43:58 1.9 @@ -106,6 +106,12 @@ #define MMAP_SUPPORTED #define LSEEK_OFFSET_CAST (off_t) #define INTL +#define SIGACTION_SUPPORTED + +#define MEMMOVE(from,to,length) memmove ((void *)to, (void *)from, (size_t)length) +#define MOVE_FAST(from,to,length) memcpy (to, from, (int) (length)) +#define MOVE_FASTER(from,to,length) memcpy (to, from, (int) (length)) +#define MOVE_CLEAR(to,length) memset (to, 0, (int) (length)) #define _PPC_PARAM_H_ #ifndef MAXPATHLEN Index: dyn.e =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/dyn.e,v retrieving revision 1.3 retrieving revision 1.4 diff -U3 -r1.3 -r1.4 --- dyn.e 2001/05/25 08:16:24 1.3 +++ dyn.e 2001/06/05 19:43:58 1.4 @@ -22,6 +22,9 @@ * 20-Apr-2001 Claudio Valderrama - Fix bug in grant/revoke by making user * case insensitive. * 24-May-2001 Claudio Valderrama - Move DYN_delete_role to dyn_del.e. + * 05-Jun-2001 John Bellardo - Renamed the revoke static function to + * revoke_permission, because there is already + * a revoke(2) function in *nix. * */ @@ -75,7 +78,7 @@ static void grant (GBL, UCHAR **); static BOOLEAN grantor_can_grant_role (TDBB, GBL, TEXT*, TEXT*); static BOOLEAN grantor_can_grant (GBL, TEXT*, TEXT*, TEXT*, TEXT*, BOOLEAN); -static void revoke (GBL, UCHAR **); +static void revoke_permission (GBL, UCHAR **); static void store_privilege (GBL, TEXT *, TEXT *,TEXT *, TEXT *, SSHORT, SSHORT, int); void DYN_ddl ( @@ -395,7 +398,7 @@ break; case gds__dyn_revoke: - revoke (gbl, ptr); + revoke_permission (gbl, ptr); break; /*** @@ -1756,13 +1759,13 @@ return grantable; } -static void revoke ( +static void revoke_permission ( GBL gbl, UCHAR **ptr) { /************************************** * - * r e v o k e + * r e v o k e _ p e r m i s s i o n * ************************************** * Index: isc_sync.c =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/isc_sync.c,v retrieving revision 1.4 retrieving revision 1.5 diff -U3 -r1.4 -r1.5 --- isc_sync.c 2001/05/24 04:11:11 1.4 +++ isc_sync.c 2001/06/05 19:43:58 1.5 @@ -345,7 +345,7 @@ #define SV_INTERRUPT 0 #endif -#if defined FREEBSD || defined NETBSD +#if defined FREEBSD || defined NETBSD || defined DARWIN #define sigset signal #endif @@ -5198,7 +5198,7 @@ **************************************/ int state; -#if (!defined HP10 && !defined linux) +#if (!defined HP10 && !defined linux && !defined DARWIN) pthread_mutexattr_t mattr; @@ -5218,7 +5218,7 @@ server (until we are to implement local IPC using shared memory in which case we need interprocess thread sync. */ -#ifdef linux +#if (defined linux || defined DARWIN) return pthread_mutex_init (mutex->mtx_mutex, NULL); #else state = pthread_mutex_init (mutex->mtx_mutex, pthread_mutexattr_default); |
From: John B. <bel...@us...> - 2001-06-05 19:44:00
|
Update of /cvsroot/firebird/interbase/lock In directory usw-pr-cvs1:/tmp/cvs-serv20803/lock Modified Files: lock.h Log Message: Changes to the build system to allow Darwin classic to compile given other platform constraints. Also included changes to allow Darwin SS to compile. Index: lock.h =================================================================== RCS file: /cvsroot/firebird/interbase/lock/lock.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- lock.h 2000/08/03 20:52:04 1.1.1.1 +++ lock.h 2001/06/05 19:43:58 1.2 @@ -65,7 +65,9 @@ #ifndef SOLARIS_MT #if !(defined(HP10) && defined(SUPERSERVER)) #if !(defined(LINUX) && defined(SUPERSERVER)) +#ifndef DARWIN #define MANAGER_PROCESS +#endif #endif #endif #endif |
From: John B. <bel...@us...> - 2001-06-05 19:44:00
|
Update of /cvsroot/firebird/interbase/firebird/bellardo/darwin In directory usw-pr-cvs1:/tmp/cvs-serv20803/firebird/bellardo/darwin Modified Files: FirebirdFramework.make install Log Message: Changes to the build system to allow Darwin classic to compile given other platform constraints. Also included changes to allow Darwin SS to compile. Index: FirebirdFramework.make =================================================================== RCS file: /cvsroot/firebird/interbase/firebird/bellardo/darwin/FirebirdFramework.make,v retrieving revision 1.1 retrieving revision 1.2 diff -U3 -r1.1 -r1.2 --- FirebirdFramework.make 2001/05/24 00:55:17 1.1 +++ FirebirdFramework.make 2001/06/05 19:43:58 1.2 @@ -4,9 +4,7 @@ RM= rm SH= /bin/sh -$(FB_FW): classic_framework $(SUPER_SERVER) - -classic_framework: +framework: mkdir -p $(FB_FW)/Versions/A/Resources/English.lproj/var $(CP) -r $(FB_BUILD)/include $(FB_FW)/Versions/A/Headers -$(RM) -fr $(FB_FW)/Versions/A/Headers/CVS @@ -35,10 +33,35 @@ $(FB_FW)/Resources/English.lproj/var $(SH) -c 'unset INTERBASE; export DYLD_FRAMEWORK_PATH=$(FB_BUILD); sed "s/__VERSION__/`$(FB_BUILD)/bin/gpre -Z | sed \"s/gpre version //g\"`/g" source/firebird/bellardo/darwin/FrameworkInfo.plist > $(FB_FW)/Resources/Info.plist' -super_targets: +super_framework: + mkdir -p $(FB_FW)/Versions/A/Resources/English.lproj/var + $(CP) -r $(FB_BUILD)/include $(FB_FW)/Versions/A/Headers + -$(RM) -fr $(FB_FW)/Versions/A/Headers/CVS + $(CP) -r $(FB_BUILD)/bin $(FB_FW)/Versions/A/Resources/bin + $(CP) $(FB_BUILD)/interbase.msg \ + $(FB_FW)/Versions/A/Resources/English.lproj/var + $(CP) -r $(FB_BUILD)/intl \ + $(FB_FW)/Versions/A/Resources/English.lproj/var + $(CP) -r $(FB_BUILD)/help \ + $(FB_FW)/Versions/A/Resources/English.lproj/var + -$(RM) -fr $(FB_FW)/Versions/A/Resources/bin/CVS + $(CP) -r $(FB_BUILD)/examples $(FB_FW)/Versions/A/Resources $(CP) $(FB_BUILD)/lib/gds.dylib.1 $(FB_FW)/Versions/A/Firebird + -$(RM) -rf $(FB_FW)/Versions/A/Resources/examples/CVS + -$(RM) -rf $(FB_FW)/Versions/A/Resources/English.lproj/var/isc4.gdb + ln -s ../../bin $(FB_FW)/Versions/A/Resources/English.lproj/var/bin; \ + ln -s Versions/Current/Headers $(FB_FW)/Headers + ln -s Versions/Current/Resources $(FB_FW)/Resources + ln -s Versions/Current/Firebird $(FB_FW)/Firebird + ln -s A $(FB_FW)/Versions/Current touch $(FB_FW)/Resources/.SuperServer echo "DarwinSS.tar.gz" > $(FB_FW)/Resources/.installer_name + $(CP) $(FB_BUILD)/isc_config $(FB_BUILD)/inetd.conf.isc \ + $(FB_BUILD)/services.isc $(FB_BUILD)/isc4.gdb \ + source/firebird/bellardo/darwin/license.html \ + source/firebird/bellardo/darwin/license.txt \ + $(FB_FW)/Resources/English.lproj/var + $(SH) -c 'unset INTERBASE; export DYLD_FRAMEWORK_PATH=$(FB_BUILD); sed "s/__VERSION__/`$(FB_BUILD)/bin/gpre -Z | sed \"s/gpre version //g\"`/g" source/firebird/bellardo/darwin/FrameworkInfo.plist > $(FB_FW)/Resources/Info.plist' force: Index: install =================================================================== RCS file: /cvsroot/firebird/interbase/firebird/bellardo/darwin/install,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- install 2001/05/24 00:52:49 1.2 +++ install 2001/06/05 19:43:58 1.3 @@ -31,7 +31,7 @@ NEW_UID=`nigrep uid . /users | grep ": uid " | awk '{ print $4 + 1 } ' | sort -n | tail -1` niutil -create . /users/firebird niutil -createprop . /users/firebird uid $NEW_UID - niutil -createprop . /users/firebird home /dev/null + niutil -createprop . /users/firebird home /Library/Frameworks/Firebird.framework niutil -createprop . /users/firebird passwd "*" niutil -createprop . /users/firebird expire 0 niutil -createprop . /users/firebird shell /bin/tcsh @@ -104,6 +104,14 @@ kill -HUP $INETPID fi +if grep -x "localhost" /etc/hosts.equiv > /dev/null; then +else + echo "localhost" >> /etc/hosts.equiv +fi +if grep -x "localhost.localdomain" /etc/hosts.equiv > /dev/null; then +else + echo "localhost.localdomain" >> /etc/hosts.equiv +fi ### # And last but not least, start the server |
From: John B. <bel...@us...> - 2001-06-05 19:44:00
|
Update of /cvsroot/firebird/interbase/builds/original In directory usw-pr-cvs1:/tmp/cvs-serv20803/builds/original Modified Files: prefix.darwin sfx.interbase sfx.lock sfx.utilities Log Message: Changes to the build system to allow Darwin classic to compile given other platform constraints. Also included changes to allow Darwin SS to compile. Index: prefix.darwin =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/prefix.darwin,v retrieving revision 1.4 retrieving revision 1.5 diff -U3 -r1.4 -r1.5 --- prefix.darwin 2001/05/28 16:50:40 1.4 +++ prefix.darwin 2001/06/05 19:43:58 1.5 @@ -111,7 +111,7 @@ LD_LIBS_J= LD_OPTS= -dylib LOCK_JRD_MISC= -LOCK_MANAGER= manager +LOCK_MANAGER= MARION_DB= -d source/marion.gdb MUISQL= muisql #MUISQL_MU_LIB= -L /usr/gds.$(HOSTNAME)/qa_tools/lib -lmu @@ -178,5 +178,6 @@ MSG_INSTALL_CMD= $(CP) source/interbase/interbase.msg source/interbase/Firebird.framework/Resources/English.lproj CARBONCORE_DIR_FLAG= -F/System/Library/Frameworks/CoreServices.framework/Frameworks +COREFOUNDATION_LINK= -framework CoreFoundation # End of file prefix.darwin: $(VERSION) $(PLATFORM) Index: sfx.interbase =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/sfx.interbase,v retrieving revision 1.11 retrieving revision 1.12 diff -U3 -r1.11 -r1.12 --- sfx.interbase 2001/05/24 04:11:11 1.11 +++ sfx.interbase 2001/06/05 19:43:58 1.12 @@ -57,10 +57,16 @@ # I've put the change here to reduce the complexity of the build script files. # MOD 07-Apr-2001. -firebird: run_codes gds.h includes executables help msgs msgs_intl extlib completed +firebird: run_codes gds.h includes executables help msgs msgs_intl extlib $(POST_BUILD_TARGET) completed -super_firebird: run_codes gds.h includes super_executables help msgs msgs_intl extlib completed +super_firebird: run_codes gds.h includes super_executables help msgs msgs_intl extlib $(SS_POST_BUILD_TARGET) completed +installer: $(PLATFORM_INSTALLER) + echo "Installer created" + +super_installer: $(SUPER_PLATFORM_INSTALLER) + echo "Super Installer created" + executables: alice burp dudley gpre miscFiles $(INTL) isql locks \ pyxis qli remote spit utilities \ $(SHARED_AM) $(LINKABLE_LIBS) @@ -89,7 +95,7 @@ #added completed according to inprise tree #FSG 093000 -completed: $(POST_BUILD_TARGET) force +completed: force $(QUIET_ECHO) "Build succeeded!" alice gfix: gpre force @@ -556,11 +562,8 @@ $(QUIET_ECHO) "Building REMOTE PIC OBJECTS..." $(SH) '$(CD) source/remote; $(MAKE) CFLAGS="$(CFLAGS)" SYSTEM="$(SYSTEM)" $(@F)' -darwin_framework: +darwin_installer_common: force $(QUIET_ECHO) "Building Firebird Installer..." - $(RM) -rf source/interbase/Firebird.framework - $(MAKE) -f firebird/bellardo/darwin/FirebirdFramework.make \ - source/interbase/Firebird.framework mkdir -p source/interbase/installer_tmp $(MV) source/interbase/Firebird.framework source/interbase/installer_tmp $(CP) source/firebird/bellardo/darwin/makefile \ @@ -570,10 +573,21 @@ ln -s ../.. source/interbase/installer_tmp/source $(MAKE) -C source/interbase/installer_tmp install_package $(RM) -rf source/interbase/installer_tmp - $(QUIET_ECHO) "Building Firebird Framework..." + -$(RM) -rf source/interbase/Firebird.framework + +darwin_installer: darwin_installer_common darwin_framework +super_darwin_installer: darwin_installer_common ss_darwin_framework + +darwin_framework: force + $(QUIET_ECHO) "Building Classic Firebird Framework..." + $(RM) -rf source/interbase/Firebird.framework + $(MAKE) -f firebird/bellardo/darwin/FirebirdFramework.make framework + +ss_darwin_framework: force + $(QUIET_ECHO) "Building Super Server Firebird Framework..." $(RM) -rf source/interbase/Firebird.framework $(MAKE) -f firebird/bellardo/darwin/FirebirdFramework.make \ - source/interbase/Firebird.framework + super_framework # Note: So far this target is only available on Solaris makedepend: Index: sfx.lock =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/sfx.lock,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- sfx.lock 2000/08/03 20:42:51 1.1.1.1 +++ sfx.lock 2001/06/05 19:43:58 1.2 @@ -61,7 +61,8 @@ manager: manager.o lock.o divorce.o $(JRD_LINK2) -$(RM) manager $(CC) $(LINK_OPTS) manager.o lock.o divorce.o $(JRD_LINK2) \ - -o manager $(NSL_LIB) $(SCO_SOCKET_LIB) $(SO_THREAD_LIB) + -o manager $(NSL_LIB) $(SCO_SOCKET_LIB) $(SO_THREAD_LIB) \ + $(COREFOUNDATION_LINK) $(CHMOD_S7) manager $(DROP) $(DROP_FLAGS) $(MV) manager $(MANAGER) Index: sfx.utilities =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/sfx.utilities,v retrieving revision 1.3 retrieving revision 1.4 diff -U3 -r1.3 -r1.4 --- sfx.utilities 2001/05/28 16:46:22 1.3 +++ sfx.utilities 2001/06/05 19:43:58 1.4 @@ -60,7 +60,8 @@ drop: drop.o dropv3.o $(JRD_LINK) $(LOCK_LINK) -$(RM) drop $(CC) $(LINK_OPTS) drop.o dropv3.o $(JRD_LINK) $(LOCK_LINK) \ - $(STDIO) -o drop $(SCO_SOCKET_LIB) $(SO_THREAD_LIB) $(NSL_LIB) + $(STDIO) -o drop $(SCO_SOCKET_LIB) $(SO_THREAD_LIB) $(NSL_LIB) \ + $(COREFOUNDATION_LINK) $(CHMOD_S7) drop $(MV) drop $(DROP) $(TOUCH) drop |
From: Frank Schlottmann-G. <fs...@us...> - 2001-06-05 00:08:15
|
Update of /cvsroot/firebird/interbase In directory usw-pr-cvs1:/tmp/cvs-serv19766/interbase Modified Files: ChangeLog Log Message: Updated ChangeLog Index: ChangeLog =================================================================== RCS file: /cvsroot/firebird/interbase/ChangeLog,v retrieving revision 1.36 retrieving revision 1.37 diff -U3 -r1.36 -r1.37 --- ChangeLog 2001/05/31 14:11:38 1.36 +++ ChangeLog 2001/06/04 22:17:05 1.37 @@ -1,3 +1,9 @@ +2001-06-04 16:15 kkuznetsov + + * interbase/jrd/gds.c: + + for Solaris 8 + 2001-05-31 05:00 robocop * interbase/firebird/robocop/: grant.gdl, trig.h: |
From: Konstantin K. <kku...@us...> - 2001-06-04 14:43:22
|
Update of /cvsroot/firebird/interbase/jrd In directory usw-pr-cvs1:/tmp/cvs-serv28531/jrd Modified Files: gds.c Log Message: for Solaris 8 Index: gds.c =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/gds.c,v retrieving revision 1.7 retrieving revision 1.8 diff -U3 -r1.7 -r1.8 --- gds.c 2001/05/24 04:11:11 1.7 +++ gds.c 2001/06/04 14:15:42 1.8 @@ -3477,12 +3477,15 @@ #endif #ifdef UNIX -#ifdef MAP_ANONYMOUS +#if (defined MAP_ANONYMOUS & !defined SOLARIS) +/* Becouse in Solaris 8 MAP_ANONYMOUS is defined now +against of previos sun releases */ + memory = mmap (NULL, size, (PROT_READ | PROT_WRITE), (MAP_ANONYMOUS | #ifndef LINUX -/* In LINUX, there is no such thing as MAP_VARIABLE. Hence, it gives +/* In LINUX and Solaris are is no such thing as MAP_VARIABLE. Hence, it gives compilation error. The equivalent functionality is default, if you do not specify MAP_FIXED */ MAP_VARIABLE | |
From: David J. <d_j...@us...> - 2001-06-01 02:56:18
|
Update of /cvsroot/firebird/manual/src/docs/docbook/fo In directory usw-pr-cvs1:/tmp/cvs-serv22191 Modified Files: qandaset.xsl Log Message: For Marcelo Lopez Ruiz. Implemented much of qandaset functionality Index: qandaset.xsl =================================================================== RCS file: /cvsroot/firebird/manual/src/docs/docbook/fo/qandaset.xsl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- qandaset.xsl 2001/05/14 17:42:41 1.1.1.1 +++ qandaset.xsl 2001/06/01 02:56:15 1.2 @@ -1,23 +1,202 @@ -<?xml version='1.0'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version='1.0'> - -<!-- ******************************************************************** - $Id$ - ******************************************************************** - - This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://nwalsh.com/docbook/xsl/ for copyright - and other information. - - ******************************************************************** --> - -<xsl:variable name="qanda.defaultlabel">number</xsl:variable> -<xsl:variable name="generate.qandaset.toc" select="true()"/> -<xsl:variable name="generate.qandadiv.toc" select="false()"/> - -<!-- ==================================================================== --> - -<!-- FIXME: WRITE THIS! --> - -</xsl:stylesheet> +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + version='1.0'> + +<!-- ******************************************************************** + $Id$ + ******************************************************************** + + This file is part of the XSL DocBook Stylesheet distribution. + See ../README or http://nwalsh.com/docbook/xsl/ for copyright + and other information. + + ******************************************************************** --> + +<!-- +Modification history for the Firebird DocBook project: +- 2001.05.30 by Marcelo Lopez Ruiz +Copied over the skeleton from the html generation, added some comments, +and changed tags from html to format objects were the mapping was easy. + +PENDING +Implementing optional styles and labels. +Implementing qandadiv elements. +--> + +<xsl:variable name="qanda.defaultlabel">number</xsl:variable> +<xsl:variable name="generate.qandaset.toc" select="true()"/> +<xsl:variable name="generate.qandadiv.toc" select="false()"/> + +<!-- ==================================================================== --> + +<!-- +elements: + qandaset - A question-and-answer set + qandaentry - A question/answer set within a qandaset + qandadiv - A titled division in a qandaset + question - A question in a qandaentry + answer - An answer to a question in a qandaentry +--> + +<xsl:template match="qandaset"> + <xsl:variable name="title" select="title"/> + <xsl:variable name="not_title" select="*[name(.)!='title']"/> + <fo:block space-before.minimum="0.8em" + space-before.optimum="1em" + space-before.maximum="1.2em"> + <xsl:apply-templates select="$title"/> + <xsl:if test="$generate.qandaset.toc"> + <xsl:call-template name="process.qanda.toc"/> + </xsl:if> + <xsl:apply-templates select="$not_title"/> + </fo:block> +</xsl:template> + +<xsl:template match="qandaset/title"> + <!-- TODO: take into account the $qalevel variable. --> + <fo:block font-size="14pt" font-weight="bold" keep-with-next='always'> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="qandadiv"> + <xsl:variable name="title" select="title"/> + <xsl:variable name="rest" select="*[name(.)!='title']"/> + + <fo:block space-before.minimum="0.8em" + space-before.optimum="1em" + space-before.maximum="1.2em" + start-indent="0.25in" + end-indent="0.25in"> + <xsl:apply-templates select="$title"/> + <xsl:if test="$generate.qandadiv.toc != '0'"> + <xsl:call-template name="process.qanda.toc"/> + </xsl:if> + <xsl:apply-templates select="$rest"/> + </fo:block> +</xsl:template> + +<xsl:template match="qandadiv/title"> + <xsl:variable name="qalevel"> + <xsl:call-template name="qandadiv.section.level"/> + </xsl:variable> + <xsl:variable name="id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="parent::*"/> + </xsl:call-template> + </xsl:variable> + + <!-- TODO: take into account the $qalevel. --> + <fo:block font-size="14pt" font-weight="bold" keep-with-next='always'> + <!-- TODO: Give an id to the link. --> + <xsl:apply-templates select="parent::qandadiv" mode="label.content"/> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="qandaentry"> + <fo:block> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="question"> + <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/> + <xsl:variable name="restch" select="(*[name(.)!='label'])[position()!=1]"/> + <xsl:variable name="id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="parent::*"/> + </xsl:call-template> + </xsl:variable> + + <fo:block> + <xsl:attribute name="id"><xsl:value-of select="$id"/> + </xsl:attribute> + <fo:wrapper font-weight="bold"><xsl:apply-templates/></fo:wrapper> + </fo:block> +</xsl:template> + +<xsl:template match="answer"> + <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/> + <xsl:variable name="restch" select="(*[name(.)!='label'])[position()!=1]"/> + + <fo:block> + <xsl:apply-templates/> + </fo:block> +</xsl:template> + +<xsl:template match="label"> + <xsl:apply-templates/> +</xsl:template> + +<!-- ==================================================================== --> + +<xsl:template name="process.qanda.toc"> + <fo:block start-indent="0.25in" + end-indent="0.25in" + border-style="solid" + border-width="thin"> + <xsl:apply-templates select="qandadiv" mode="qandatoc.mode"/> + <xsl:apply-templates select="qandaentry" mode="qandatoc.mode"/> + </fo:block> +</xsl:template> + +<xsl:template match="qandadiv" mode="qandatoc.mode"> + <fo:block> + <xsl:apply-templates select="title" mode="qandatoc.mode"/> + <xsl:call-template name="process.qanda.toc"/> + </fo:block> +</xsl:template> + +<xsl:template match="qandadiv/title" mode="qandatoc.mode"> + <xsl:variable name="qalevel"> + <xsl:call-template name="qandadiv.section.level"/> + </xsl:variable> + <xsl:variable name="id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="parent::*"/> + </xsl:call-template> + </xsl:variable> + + <xsl:apply-templates select="parent::qandadiv" mode="label.content"/> + <xsl:text> </xsl:text> + <!-- TODO: make an link from this. --> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="qandaentry" mode="qandatoc.mode"> + <xsl:apply-templates mode="qandatoc.mode"/> +</xsl:template> + +<xsl:template match="question" mode="qandatoc.mode"> + <!-- Create an id for this question. --> + <xsl:variable name="id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="parent::*"/> + </xsl:call-template> + </xsl:variable> + <!-- Make this block a link. --> + <fo:block font-weight="bold"> + <fo:basic-link> + <xsl:attribute name="internal-destination"><xsl:value-of select="$id"/> + </xsl:attribute> + <xsl:apply-templates mode="no.wrapper.mode"/> + </fo:basic-link> + </fo:block> +</xsl:template> + +<xsl:template match="answer|revhistory" mode="qandatoc.mode"> + <!-- nop --> +</xsl:template> + +<!-- ==================================================================== --> + +<xsl:template match="*" mode="no.wrapper.mode"> + <xsl:apply-templates/> +</xsl:template> + +<!-- ==================================================================== --> + +</xsl:stylesheet> \ No newline at end of file |
From: David J. <d_j...@us...> - 2001-06-01 02:51:14
|
Update of /cvsroot/firebird/manual/src/docs/firebirddocs In directory usw-pr-cvs1:/tmp/cvs-serv21519 Modified Files: migrationmssql.xml Log Message: Added qanda section and contributions from Yeoh Ray Mond. On behalf of Marcelo Lopez Ruiz Index: migrationmssql.xml =================================================================== RCS file: /cvsroot/firebird/manual/src/docs/firebirddocs/migrationmssql.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- migrationmssql.xml 2001/05/14 17:44:02 1.1.1.1 +++ migrationmssql.xml 2001/06/01 02:51:11 1.2 @@ -1,5 +1,4 @@ -<?xml version = "1.0" encoding = "UTF-8"?> - +<?xml version="1.0" encoding="UTF-8"?> <!-- - - > <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN">< ! - - --> <section id="migration-mssql"> <sectioninfo> @@ -10,20 +9,34 @@ <address>mar...@xl...</address> </affiliation> </author> + <author> + <firstname>Ray Mond</firstname> + <surname>Yeoh</surname> + <!-- + <affiliation> + <address>ray...@ex...</address> + </affiliation> + --> + </author> </sectioninfo> + <!-- + Note: pending items are being tagged as emphasis, instead of comment, to + avoid errors and warnings during the book build. + --> + <title>Converting from Microsoft SQL Server to Firebird</title> <para> <application>Microsoft SQL Server</application> (MS SQL) is a widely used database server. There are three versions which currently account for the majority of the user base: MS SQL 6.5, MS SQL 7 and - MS SQL 2000 + MS SQL 2000. </para> <section id="migration-mssql-intro"> <title>Introduction</title> - <para>This section describes the convertion section itself.</para> - <para>The convertion from MS SQL server documentation is meant, first, + <para>This section describes the conversion section itself.</para> + <para>The conversion from MS SQL server documentation is meant, first, to help users evaluate whether the process should be performed at all. It then goes on to detail how this can be done, adding bits of experience collected by different people.</para> @@ -31,12 +44,16 @@ migrating. First, moving the data from one database server to another can be trivial or not, depending on your database schema. There are many tools to help you with this process. The standard data - convertions are listed in this document.</para> + conversions are listed in this document.</para> <para>Second, you will need to migrate any stored procedures and triggers manually. This is the tricky part. There are many differences, some minor, some important; this document attempts to address most of them, giving examples on the most frequent problems and how to solve them.</para> + <para>At the end, you will find a section about Frequently Asked Questions + (FAQ) about Firebird and MS SQL. Note that these questions are not + always specific to migration in general, but if you have a question and + you are coming from MS SQL, it is very likely your question is among these.</para> </section> <section id="migration-mssql-pros-cons"> @@ -47,11 +64,15 @@ <title>Why migrate to <application>Firebird</application></title> <para>This depends mostly on what version you are currently using and what you are using MS SQL for.</para> - <para>For example, if using MS SQL 6.5, it is a simple matter of considering + <para>For example, if using MS SQL 6.5, deciding it is a simple matter of considering the features and ease of use. MS SQL 6.5 will work with fixed devices rather than dynamically expanding files, which makes it very difficult to balance ease of administration vrs. available space. There are numerous - bugs and annoying behaviours which </para> + bugs and annoying behaviours in MS SQL 6.5; MS SQL 7 is a much better + database server. Two particularly annoying limits of MS SQL 6.5 are + the fact that variable-length character data cannot + be longer than 255 characters, and that you can only add (never remove) + columns to a table.</para> <para>If you are using MS SQL 7, you know a lot of the little quirks have been removed, but you are still missing some great features, such as updateable views, greater control over identity fields, user-defined @@ -135,13 +156,18 @@ devices. All data are kept in files in the normal file system available. Note that you cannot use a raw disk partition to hold your databases.</para> <para><emphasis>Important Note</emphasis>: MS SQL uses a logging mechanism to keep database - consistent and survive crashes. <application>Firebird</application> uses a multi-generation mechanism - to create copies in-place as they are required, but these are not written - immediately to disk. While this provides a considerable speed gain, you - can turn Forced Writes on a per-database basis to ensure that sudden - blackouts will not compromise data integrity. If your server has a reliable - environment such as a dedicated Linux box, and some form of UPS, turning - Forced Writes on can be ignored.</para> + consistent and survive crashes. <application>Firebird</application> + uses a multi-generation mechanism to create copies in-place as they + are required, but these are not written immediately to disk. While + this provides a considerable speed gain, you can turn Forced Writes + on a per-database basis to ensure that sudden blackouts will not + compromise data integrity.</para> + <para>Forced Writes instructs the database server to flush all writes + to disk immediately, rather than allowing the operating system + to flush it at its leisure. If your server has a reliable environment + such as a dedicated Linux or Windows 2000 box, and some form + of UPS, turning Forced Writes on can be ignored.<emphasis>A reference + to Forced Writes documentation should be inserted here.</emphasis></para> </section> <section id="migration-mssql-db-admin"> @@ -219,7 +245,8 @@ and MS SQL, and how to translate types from one system to another.</para> <para>MS SQL has different data types, depending on the version. The following table lists the data types along with the version in which - they were introduced.</para> + they were introduced. <emphasis>The Firebird data types should have a link + to more extensive documentation.</emphasis></para> <para><table><title>Data Types Conversion Table</title> <tgroup cols="4" align="center" colsep="1" rowsep="1"> <colspec colname='c1' colwidth="2cm"/> @@ -324,7 +351,7 @@ <entry><para>6.5</para></entry> <entry><para>numeric</para></entry> <entry><para>NUMERIC</para></entry> - <entry><para>In MS SQL, decimal and numeric are synonims.</para></entry> + <entry><para>In MS SQL, decimal and numeric are synonyms.</para></entry> </row><row> <entry><para>7</para></entry> <entry><para>nvarchar</para></entry> @@ -417,7 +444,7 @@ <type>DECIMAL</type> mean <emphasis>at least</emphasis> the request precision (the digits to the right of the decimal symbol, however, are maintained exactly). In MS SQL, on the other hand, - <type>numeric</type> and <type>decimal</type> are synonims.</para> + <type>numeric</type> and <type>decimal</type> are synonyms.</para> <para>There is also a very common quasi-data type, identity, which can only be used when defining tables. This is an <type>int</type> which is automatically assigned a value on insertion and cannot be @@ -436,7 +463,7 @@ <title>Converting the identity data type</title> <para>There are many ways to perform the conversion. In general, Firebird is more flexible and powerful in this respect.</para> - <para>The most direct convertion is to create a BEFORE trigger + <para>The most direct conversion is to create a BEFORE trigger on the table, assigning to the previous column the value from a generator. This ensures that the number is unique.</para> <para>For added flexibility, a single generator can be used @@ -481,7 +508,7 @@ for a record.</para> <para>To use the field like this, create a BEFORE trigger on the table with the field, and retrieve the value from a UDF.</para> - <para>TODO: write the UDF and write the importing procedure</para> + <para><emphasis>TODO: write the UDF and write the importing procedure</emphasis></para> </section> </section> @@ -567,12 +594,14 @@ be declared before the procedure or trigger body.</para> <para>For example, compare the following code snippets.</para> <programlisting><![CDATA[ +/* This is MS SQL syntax. */ CREATE PROCEDURE my_procedure AS DECLARE @my_variable int SET @my_variable = 5 ]]></programlisting> <programlisting><![CDATA[ +/* This is FireBird syntax. */ CREATE PROCEDURE my_procedure AS DECLARE VARIABLE my_variable int @@ -677,7 +706,7 @@ every statement); <command>GOTO</command> is used to group error handling statements. In Firebird, there is a better error-handling mechanism: the <command>WHEN...DO</command> statements. - <!-- TODO: insert reference to docs here. --> </para> + <emphasis>TODO: insert reference to docs here.</emphasis></para> <para>Of course, <command>GOTO</command> statements can be used for other purposes. In these cases, using stored procedures correctly will usually improve the database design.</para> @@ -809,7 +838,7 @@ level problems found in MS SQL environments are void when taken to a <application>Firebird</application> database server. Contention between readers and - writers is minimal and is resolved by the multigeneration + writers is minimal and is resolved by the multi-generational architecture.</para> </section> <section id="migration-mssql-sql-syntax-cursors"> @@ -916,12 +945,12 @@ <para>The standard command-line utility is <command>isql</command>. This is used usually when executing large scripts, or when writing batch files. - <!-- TODO: provide a link to docs. --></para> + <emphasis>TODO: provide a link to docs.</emphasis></para> <para>When a graphical user interface (GUI) is available, the administration tool will most probably be <application>IBConsole</application>. This tool is similar to MS SQL's <application>Enterprise Manager</application>. - <!-- TODO: provide a link to docs. --></para> + <emphasis>TODO: provide a link to docs.</emphasis></para> </section> <section id="migration-mssql-client-access-developers"> <title>Client Access for Developers</title> @@ -940,7 +969,7 @@ as they restrict themselves to a common SQL subset. There are many tools which can use <application>Firebird</application> through ODBC drivers. - <!-- TODO: provide links to existing drivers --></para> + <emphasis>TODO: provide a link to existing drivers.</emphasis></para> <para>Using an OLE DB drivers lets developers use Microsoft's popular ADO API. This allows the <application>Firebird</application> database to be reached from tools such as @@ -1007,6 +1036,11 @@ <entry><para>IBConsole</para></entry> </row><row> <entry><para>Enterprise Manager</para></entry> + <entry><para> + <ulink url="http://sourceforge.net/projects/ibaccess">IBAccess</ulink> + </para></entry> + </row><row> + <entry><para>Enterprise Manager</para></entry> <entry><para><ulink url="http://www.ibexpert.com/">IBExpert</ulink> (commercial)</para></entry> </row><row> @@ -1039,6 +1073,132 @@ <ulink url="http://www.ibphoenix.com/ibp_contrib_download.html"> IBPhoenix Contributed Downloads</ulink></para> </section> + </section> + + <section id="migration-mssql-faq"> + <title>Frequently Asked Question</title> + <para>Look here if you have any questions, before asking them to the + community. In all likelihood, they have been asked before and you + can find the answer right here. If you still have doubts, though, + don't hesitate to ask - <application>Firebird</application> has a strong user + community, willing to give a hand.</para> + <qandaset> + <qandaentry> + <question><para> + Are IDENTITY fields supported in Firebird? + </para></question> + <answer><para> + No, the field behaviour is not bound to the field type in + Firebird. There are many ways to achieve the same behaviour, + though. See <xref linkend="migration-mssql-data-types-identity"/>. + </para></answer> + </qandaentry> + <qandaentry> + <question><para> + Can I use ADO to access my Firebird database? + </para></question> + <answer><para> + Yes, you can. Microsoft offers an ODBC Provider, and you + can use this provider to connect to a Firebird ODBC data source. + </para></answer> + </qandaentry> + <qandaentry> + <question><para> + How can I access Firebird from ActiveX Server Pages? + </para></question> + <answer><para> + To access a Firebird database from ASP pages, you have two + methods. The first one is to write an ActiveX library using + Delphi or a similar tool, and access this object via + ASP scripts. + </para><para> + The second method is to create an ODBC data source, and + access it directly using ADO. For example, if you create + an ODBC data source named my_fb_db, you can access it + with the following script. + </para><warning><para> + Remember to use localhost: when specifying a local database, + otherwise you will not be able to connect. + </para></warning> + <programlisting><![CDATA[ +<% Option Explicit %> +<% + Dim cnn, rst + ' Create a Connection + Set cnn = CreateObject("ADODB.Connection") + cnn.Open "Provider=MSDASQL.1;Data Source=my_fb_db;" _ + & "Password=masterkey;User ID=sysdba" + ' Get the results of a query. + Set rst = cnn.Execute _ + "SELECT FIRST_NAME, LAST_NAME, SALARY " _ + & "FROM EMPLOYEES" +%> +<html> +<head> + <title>My Firebird Database</title> +</head> +<body> +<h1>My Firebird Database</h1> +<p>The following table lists the employees.</p> +<table> + <tr> + <th>First Name</th> + <th>Last Name</th> + <th>Salary</th> + </tr> +<% + While Not rst.Eof + Response.Write "<tr>" _ + & "<td>" & rst("FIRST_NAME") & "</td>" _ + & "<td>" & rst("LAST_NAME") & "</td>" _ + & "<td>" & rst("SALARY") & "</td>" _ + & "</tr>" + rst.MoveNext + WEnd +%> +</table> +</body> +</html> +]]></programlisting><para> + For more information on accessing Firebird from ASP, you can browse to <ulink + url="http://community.borland.com/article/0,1410,27152,00.html"> + Connecting to InterBase using an Active Server Page</ulink>. + For more information on using ASP, you can browse to <ulink + url="http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/iisref/aspguide.htm"> + Active Server Pages Guide</ulink>. + For more information on using ADO, you can browse to <ulink + url="http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/dasdk/ados4piv.htm"> + MS ADO Start Page</ulink>. + </para></answer> + </qandaentry> + <qandaentry> + <question><para> + Which is better: superserver or classic? + </para></question> + <answer><para> + This is a tough one. Warning: personal opinion ahead. + Apparently, the classic version offers better performance + on multiprocessor nodes and is the first version to be ported + to any platform. However, the superserver version + will eventually have better performance on most platforms. + </para></answer> + </qandaentry> + <qandaentry> + <question><para> + Is Firebird free? + </para></question> + <answer><para> + Yes, Firebird is free. To download, use, deploy, rebuild. You + can't sell the database server, claim it as your own, or + change it and continue to call it Firebird - + other than that, you can do pretty much what you want to.</para> + <warning><para>I'm not a lawyer. If you want the + original documents, you can find a link to + both the original InterBase license and the Firebird + license at <ulink url="http://www.ibphoenix.com/">IBPhoenix</ulink>. + </para></warning></answer> + </qandaentry> + </qandaset> </section> </section> |
From: Frank Schlottmann-G. <fs...@us...> - 2001-05-31 14:11:41
|
Update of /cvsroot/firebird/interbase In directory usw-pr-cvs1:/tmp/cvs-serv21074/interbase Modified Files: ChangeLog Log Message: Updated ChangeLog Index: ChangeLog =================================================================== RCS file: /cvsroot/firebird/interbase/ChangeLog,v retrieving revision 1.35 retrieving revision 1.36 diff -U3 -r1.35 -r1.36 --- ChangeLog 2001/05/30 17:27:08 1.35 +++ ChangeLog 2001/05/31 14:11:38 1.36 @@ -1,3 +1,15 @@ +2001-05-31 05:00 robocop + + * interbase/firebird/robocop/: grant.gdl, trig.h: + + Changes to system triggers to allow deactivating a FK + +2001-05-31 05:00 robocop + + * interbase/firebird/robocop/: grant.gdl, trig.h: + + Initial revision + 2001-05-30 05:21 bellardo * interbase/dsql/parse.sed: |
From: Claudio V. C. <ro...@us...> - 2001-05-31 03:00:50
|
Update of /cvsroot/firebird/interbase/firebird/robocop In directory usw-pr-cvs1:/tmp/cvs-serv13397 Log Message: Changes to system triggers to allow deactivating a FK Status: Vendor Tag: CVC Release Tags: systrig N interbase/firebird/robocop/grant.gdl N interbase/firebird/robocop/trig.h No conflicts created by this import ***** Bogus filespec: - ***** Bogus filespec: Imported ***** Bogus filespec: sources |
From: Frank Schlottmann-G. <fs...@us...> - 2001-05-30 17:27:13
|
Update of /cvsroot/firebird/interbase In directory usw-pr-cvs1:/tmp/cvs-serv26667/interbase Modified Files: ChangeLog Log Message: Updated ChangeLog Index: ChangeLog =================================================================== RCS file: /cvsroot/firebird/interbase/ChangeLog,v retrieving revision 1.34 retrieving revision 1.35 diff -U3 -r1.34 -r1.35 --- ChangeLog 2001/05/28 06:21:33 1.34 +++ ChangeLog 2001/05/30 17:27:08 1.35 @@ -1,3 +1,31 @@ +2001-05-30 05:21 bellardo + + * interbase/dsql/parse.sed: + + Re-added a pattern mistakenly removed during the Darwin port. + +2001-05-28 18:50 bellardo + + * interbase/builds/original/prefix.darwin: + + Fixed improper use of LINK_OPTS build macro. Also included are + preliminary changes to get SS to compile in Darwin. + +2001-05-28 18:46 bellardo + + * interbase/builds/original/sfx.utilities: + + Fixed build process bug introduced by Darwin port that prevented + the drop target from building correctly. + +2001-05-28 08:21 fsg + + * interbase/jrd/: dyn_def.e, dyn_mod.e: + + Changes to get jrd/dyn_???.c compiled under Linux again. + + fsg + 2001-05-28 06:47 robocop * interbase/msgs/msg.gbak: |
From: John B. <bel...@us...> - 2001-05-30 03:21:05
|
Update of /cvsroot/firebird/interbase/dsql In directory usw-pr-cvs1:/tmp/cvs-serv2457 Modified Files: parse.sed Log Message: Re-added a pattern mistakenly removed during the Darwin port. Index: parse.sed =================================================================== RCS file: /cvsroot/firebird/interbase/dsql/parse.sed,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- parse.sed 2001/05/24 04:11:11 1.2 +++ parse.sed 2001/05/30 03:21:02 1.3 @@ -27,5 +27,6 @@ s/yylex()/yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous)/g s/dsql_yyparse(void);/dsql_yyparse(USHORT, USHORT, USHORT, BOOLEAN *);/g s/dsql_yyparse __P((void));/dsql_yyparse __P((USHORT, USHORT, USHORT, BOOLEAN*));/g +s/dsql_yyparse(void)/dsql_yyparse(USHORT client_dialect, USHORT db_dialect, USHORT parser_version, BOOLEAN *stmt_ambiguous)/g s/dsql_yyparse()/dsql_yyparse(USHORT client_dialect, USHORT db_dialect, USHORT parser_version, BOOLEAN *stmt_ambiguous)/g s/YYLEX()/YYLEX(client_dialect, db_dialect, parser_version, stmt_ambiguous)/g |
From: John B. <bel...@us...> - 2001-05-28 16:50:42
|
Update of /cvsroot/firebird/interbase/builds/original In directory usw-pr-cvs1:/tmp/cvs-serv23713 Modified Files: prefix.darwin Log Message: Fixed improper use of LINK_OPTS build macro. Also included are preliminary changes to get SS to compile in Darwin. Index: prefix.darwin =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/prefix.darwin,v retrieving revision 1.3 retrieving revision 1.4 diff -U3 -r1.3 -r1.4 --- prefix.darwin 2001/05/24 04:11:11 1.3 +++ prefix.darwin 2001/05/28 16:50:40 1.4 @@ -40,6 +40,7 @@ PHASE2_SHLIB_PATH= unset INTERBASE; export DYLD_FRAMEWORK_PATH=source/interbase; POST_BUILD_TARGET= darwin_framework +SS_POST_BUILD_TARGET= ss_darwin_framework DEBUG_OBJECTS= $($(VERSION)_DEBUG_OBJECTS) SHRLIB_DIR= $($(VERSION)_SHRLIB_DIR) @@ -76,13 +77,16 @@ GDS_PYXIS= gds_pyxis.a GDSLIB_BACKEND= source/interbase/lib/gds_b.a GDSLIB_LINK= -Lsource/jrd -lgds_b -LINK_OPTS= -Fsource/interbase -framework Firebird +#LINK_OPTS= -Fsource/interbase -framework Firebird +#SS_LINK_OPTS= -Fsource/interbase GPRE_BOOT_LINK_OPTS= +PLATFORM_INSTALLER= darwin_installer +SUPER_PLATFORM_INSTALLER= super_darwin_installer GDSSHR_DEST= source/interbase/lib/gds.dylib GDSSHR= gds.dylib -LINUX_GDSSHR= $(GDSSHR) -GDSSHR_LINK= $(SHRLIB_DIR) +#LINUX_GDSSHR= $(GDSSHR) +GDSSHR_LINK= -Fsource/interbase -framework Firebird #GDSSHR_LINK= $(SHRLIB_DIR) -lgds_pyxis #PIPE_GDSSHR= source/interbase/lib/gds.so.0 #PIPE_GDSSHR_LINK= $(SHRLIB_DIR) -lgds_pyxis @@ -133,9 +137,9 @@ THREAD_LIB= -lpthread SUN_FUNCSHR= $(FUNCSHR) DARWIN_SUPER_GDSSHR= source/interbase/lib/gds.dylib.1 -SUPER_CLIENT_GDSSHR= $(LX_SUPER_GDSSHR) +SUPER_CLIENT_GDSSHR= $(DARWIN_SUPER_GDSSHR) SUPER_BACKEND= source/jrd/gds_ss.a -SUPER_LINK= -Lsource/jrd -lgds_ss -lpthread +SUPER_LINK= -Lsource/jrd -lgds_ss -framework System -framework Foundation SUPER_SERVER= UTILITIES= WAL_P_OBJS= wal_p_objects |
From: John B. <bel...@us...> - 2001-05-28 16:46:25
|
Update of /cvsroot/firebird/interbase/builds/original In directory usw-pr-cvs1:/tmp/cvs-serv22998 Modified Files: sfx.utilities Log Message: Fixed build process bug introduced by Darwin port that prevented the drop target from building correctly. Index: sfx.utilities =================================================================== RCS file: /cvsroot/firebird/interbase/builds/original/sfx.utilities,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- sfx.utilities 2001/05/24 04:11:11 1.2 +++ sfx.utilities 2001/05/28 16:46:22 1.3 @@ -57,11 +57,9 @@ $(RM) dba.exe $(TOUCH) dba.exe -# JMB all $(JRD_LINK) $(LOCK_LINK) files are in the shared library, so I -# removed them from the link line. -drop: drop.o dropv3.o +drop: drop.o dropv3.o $(JRD_LINK) $(LOCK_LINK) -$(RM) drop - $(CC) $(LINK_OPTS) drop.o dropv3.o \ + $(CC) $(LINK_OPTS) drop.o dropv3.o $(JRD_LINK) $(LOCK_LINK) \ $(STDIO) -o drop $(SCO_SOCKET_LIB) $(SO_THREAD_LIB) $(NSL_LIB) $(CHMOD_S7) drop $(MV) drop $(DROP) |
From: Frank Schlottmann-G. <fs...@us...> - 2001-05-28 06:21:35
|
Update of /cvsroot/firebird/interbase In directory usw-pr-cvs1:/tmp/cvs-serv5771/interbase Modified Files: ChangeLog Log Message: Changes to get jrd/dyn_???.c compiled under Linux again. fsg Index: ChangeLog =================================================================== RCS file: /cvsroot/firebird/interbase/ChangeLog,v retrieving revision 1.33 retrieving revision 1.34 diff -U3 -r1.33 -r1.34 --- ChangeLog 2001/05/25 22:06:37 1.33 +++ ChangeLog 2001/05/28 06:21:33 1.34 @@ -1,3 +1,9 @@ +2001-05-28 06:47 robocop + + * interbase/msgs/msg.gbak: + + New msg 212: Zero length identifiers are not allowed + 2001-05-25 20:29 bellardo * interbase/firebird/bellardo/nightly_build_script: |
From: Frank Schlottmann-G. <fs...@us...> - 2001-05-28 06:21:35
|
Update of /cvsroot/firebird/interbase/jrd In directory usw-pr-cvs1:/tmp/cvs-serv5771/interbase/jrd Modified Files: dyn_def.e dyn_mod.e Log Message: Changes to get jrd/dyn_???.c compiled under Linux again. fsg Index: dyn_def.e =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/dyn_def.e,v retrieving revision 1.3 retrieving revision 1.4 diff -U3 -r1.3 -r1.4 --- dyn_def.e 2001/05/25 08:16:24 1.3 +++ dyn_def.e 2001/05/28 06:21:33 1.4 @@ -250,7 +250,7 @@ DYN_UTIL_generate_constraint_name (tdbb, gbl, constraint_name); if (!constraint_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -666,7 +666,7 @@ GET_STRING (ptr, exception_name); if (!exception_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ request = (BLK) CMP_find_request (tdbb, drq_s_xcp, DYN_REQUESTS); @@ -851,7 +851,7 @@ GET_STRING (ptr, filter_name); if (!filter_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -950,7 +950,7 @@ GET_STRING (ptr, function_name); if (!function_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -1184,7 +1184,7 @@ GET_STRING (ptr, generator_name); if (!generator_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -1248,7 +1248,7 @@ DYN_UTIL_generate_field_name (tdbb, gbl, global_field_name); if (!global_field_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -1532,7 +1532,7 @@ DYN_UTIL_generate_index_name (tdbb, gbl, index_name, index_type); if (!index_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -2058,7 +2058,7 @@ GET_STRING (ptr, local_field_name); if (!local_field_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -2574,7 +2574,7 @@ GET_STRING (ptr, parameter_name); if (!parameter_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -2808,7 +2808,7 @@ GET_STRING (ptr, procedure_name); if (!procedure_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -2989,7 +2989,7 @@ GET_STRING (ptr, relation_name); if (!relation_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -3237,7 +3237,7 @@ GET_STRING (ptr, role_name); if (!role_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -3420,7 +3420,7 @@ GET_STRING (ptr, sql_field_name); if (!sql_field_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ @@ -3801,7 +3801,7 @@ DYN_UTIL_generate_trigger_name (tdbb, gbl, t); if (!t[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ if (trigger_name != NULL) @@ -4039,7 +4039,7 @@ dbb = tdbb->tdbb_database; if (!view[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ Index: dyn_mod.e =================================================================== RCS file: /cvsroot/firebird/interbase/jrd/dyn_mod.e,v retrieving revision 1.5 retrieving revision 1.6 diff -U3 -r1.5 -r1.6 --- dyn_mod.e 2001/05/25 08:16:24 1.5 +++ dyn_mod.e 2001/05/28 06:21:33 1.6 @@ -495,7 +495,7 @@ /* msg 204: Cannot rename domain %s to %s. A domain with that name already exists. */ } } - else DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + else DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ break; } @@ -1178,7 +1178,7 @@ new_fld[0] = 0; GET_STRING (&new_name, new_fld); if (!new_fld[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ check_view_dependency (tdbb, dbb, gbl, r, f); @@ -1538,7 +1538,7 @@ /* GET_STRING (ptr, X.RDB$TRIGGER_NAME); */ GET_STRING (ptr, new_trigger_name); if (!new_trigger_name[0]) - DYN_error_punt (TRUE, isc_dyn_zero_len_id, NULL, NULL, NULL, NULL, NULL); + DYN_error_punt (TRUE, 212, NULL, NULL, NULL, NULL, NULL); /* msg 212: "Zero length identifiers not allowed" */ strcpy (X.RDB$TRIGGER_NAME, new_trigger_name); |
From: Claudio V. C. <ro...@us...> - 2001-05-28 04:47:19
|
Update of /cvsroot/firebird/interbase/msgs In directory usw-pr-cvs1:/tmp/cvs-serv25861 Modified Files: msg.gbak Log Message: New msg 212: Zero length identifiers are not allowed Index: msg.gbak =================================================================== RCS file: /cvsroot/firebird/interbase/msgs/msg.gbak,v retrieving revision 1.1 retrieving revision 1.2 diff -U3 -r1.1 -r1.2 Binary files /tmp/cvsCjK7zR and /tmp/cvsHwsDjW differ |
From: Frank Schlottmann-G. <fs...@us...> - 2001-05-25 22:06:40
|
Update of /cvsroot/firebird/interbase In directory usw-pr-cvs1:/tmp/cvs-serv19774/interbase Modified Files: ChangeLog Log Message: Updated ChangeLog Index: ChangeLog =================================================================== RCS file: /cvsroot/firebird/interbase/ChangeLog,v retrieving revision 1.32 retrieving revision 1.33 diff -U3 -r1.32 -r1.33 --- ChangeLog 2001/05/24 22:07:39 1.32 +++ ChangeLog 2001/05/25 22:06:37 1.33 @@ -1,3 +1,35 @@ +2001-05-25 20:29 bellardo + + * interbase/firebird/bellardo/nightly_build_script: + + Initial version of my very rough nightly build script. + +2001-05-25 19:21 bellardo + + * interbase/utilities/: drop.c, dropv3.c: + + Fixed linux platform error introduced by the original darwin port. + +2001-05-25 10:18 robocop + + * interbase/builds_win32/original/ib_udf.bind: + + New function substrlen was put at the tail. + +2001-05-25 10:17 robocop + + * interbase/jrd/alt.c: + + User names cannot be length 32 but 31 maximum. + +2001-05-25 10:16 robocop + + * interbase/jrd/: codes.h, codetext.h, dyn.e, dyn_def.e, dyn_del.e, + dyn_df_proto.h, dyn_dl_proto.h, dyn_md_proto.h, dyn_mod.e, + iberror.h, msg_facs.h, msgs.h, rdb_codes.h, sql_code.h: + + Zero length identifiers not allowed and other bug fixes. + 2001-05-24 16:47 tamlin * interbase/alice/tdr.c: |
From: David J. <d_j...@us...> - 2001-05-25 19:58:20
|
Update of /cvsroot/firebird/client-java/src/org/firebirdsql/jca In directory usw-pr-cvs1:/tmp/cvs-serv5723 Modified Files: FBManagedConnection.java TestFBManagedConnectionFactory.java Log Message: First steps towards sql functionality Index: FBManagedConnection.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jca/FBManagedConnection.java,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- FBManagedConnection.java 2001/05/25 16:21:49 1.2 +++ FBManagedConnection.java 2001/05/25 19:58:17 1.3 @@ -44,6 +44,10 @@ import org.firebirdsql.gds.isc_db_handle; import org.firebirdsql.gds.isc_tr_handle; import org.firebirdsql.gds.GDS; +import org.firebirdsql.gds.GDSException; +import org.firebirdsql.gds.XSQLDA; +import org.firebirdsql.gds.XSQLVAR; +import org.firebirdsql.jdbc.FBConnection; /** * @@ -194,7 +198,12 @@ ResourceAdapterInternalException - Resource adapter internal error condition */ public void associateConnection(java.lang.Object connection) throws ResourceException { - throw new ResourceException("not yet implemented"); + try { + ((FBConnection)connection).setManagedConnection(this); + } + catch (ClassCastException cce) { + throw new ResourceException("invalid connection supplied to associateConnection: " + cce); + } } /** @@ -256,7 +265,10 @@ **/ public java.lang.Object getConnection(Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { - throw new ResourceException("not yet implemented"); + //subject currently ignored + //cxRequestInfo currently ignored. + + return new FBConnection(this); } @@ -431,6 +443,16 @@ findIscTrHandle(id, flags); } + //FB public methods. Could be package if packages reorganized. + + public boolean executeSQL(String sql) throws GDSException { + //Should we test for dbhandle? + XSQLDA out = new XSQLDA(); + mcf.gds.isc_dsql_exec_inmed2(currentTr.getDbHandle(), currentTr, sql, + GDS.SQL_DIALECT_CURRENT, null, out); + + return false;//Hah! + } //-------------------------------------------------------------------- //package visibility Index: TestFBManagedConnectionFactory.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jca/TestFBManagedConnectionFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -U3 -r1.1 -r1.2 --- TestFBManagedConnectionFactory.java 2001/05/25 16:21:49 1.1 +++ TestFBManagedConnectionFactory.java 2001/05/25 19:58:17 1.2 @@ -10,6 +10,7 @@ import javax.resource.spi.*; import javax.transaction.xa.*; +import java.sql.Connection; //import org.firebirdsql.jca.*; import org.firebirdsql.gds.Clumplet; @@ -95,6 +96,58 @@ FBManagedConnectionFactory mcf = initMcf(); ManagedConnection mc = mcf.createManagedConnection(null, null); } + + public void testCreateC() throws Exception { + System.out.println(); + System.out.println("testCreateC"); + FBManagedConnectionFactory mcf = initMcf(); + ManagedConnection mc = mcf.createManagedConnection(null, null); + Connection c = (Connection)mc.getConnection(null, null); + } + + public void testAssociateC() throws Exception { + System.out.println(); + System.out.println("testAssociateC"); + FBManagedConnectionFactory mcf = initMcf(); + ManagedConnection mc1 = mcf.createManagedConnection(null, null); + Connection c1 = (Connection)mc1.getConnection(null, null); + ManagedConnection mc2 = mcf.createManagedConnection(null, null); + Connection c2 = (Connection)mc2.getConnection(null, null); + mc1.associateConnection(c2); + mc2.associateConnection(c1); + } + + public void testCreateStatement() throws Exception { + System.out.println(); + System.out.println("testCreateStatement"); + FBManagedConnectionFactory mcf = initMcf(); + ManagedConnection mc = mcf.createManagedConnection(null, null); + Connection c = (Connection)mc.getConnection(null, null); + Statement s = c.createStatement(); + } + + public void testUseStatement() throws Exception { + System.out.println(); + System.out.println("testCreateStatement"); + FBManagedConnectionFactory mcf = initMcf(); + ManagedConnection mc = mcf.createManagedConnection(null, null); + Connection c = (Connection)mc.getConnection(null, null); + Statement s = c.createStatement(); + XAResource xa = mc.getXAResource(); + Xid xid = new XidImpl(); + xa.start(xid, XAResource.TMNOFLAGS); + s.execute("CREATE TABLE T1 ( C1 SMALLINT, C2 SMALLINT)"); + xa.end(xid, XAResource.TMNOFLAGS); + xa.commit(xid, true); + + xid = new XidImpl(); + xa.start(xid, XAResource.TMNOFLAGS); + s.execute("DROP TABLE T1"); + xa.end(xid, XAResource.TMNOFLAGS); + xa.commit(xid, true); + + } + public void testGetXAResource() throws Exception { System.out.println(); |
From: David J. <d_j...@us...> - 2001-05-25 19:52:55
|
Update of /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc In directory usw-pr-cvs1:/tmp/cvs-serv3917 Modified Files: FBConnection.java FBStatement.java FBXAResource.java Log Message: First steps towards sql functionality Index: FBConnection.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc/FBConnection.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- FBConnection.java 2001/05/09 14:24:17 1.1.1.1 +++ FBConnection.java 2001/05/25 19:52:52 1.2 @@ -34,6 +34,8 @@ import java.sql.SQLWarning; import java.sql.Statement; +import org.firebirdsql.jca.FBManagedConnection; + //import javax.resource.cci.Connection;--can't import, two classes with same name. @@ -45,7 +47,7 @@ * @version $ $ */ -//Note that this connection class is only a handle to a XAConnection. +//Note that this connection class is only a handle to a ManagedConnection. /** * <P>A connection (session) with a specific * database. Within the context of a Connection, SQL statements are @@ -69,6 +71,16 @@ * Methods that are new in the JDBC 2.0 API are tagged @since 1.2. */ public class FBConnection implements Connection/*, javax.resource.cci.Connection*/ { + + FBManagedConnection mc; + + public FBConnection(FBManagedConnection mc) { + this.mc = mc; + } + + public void setManagedConnection(FBManagedConnection mc) { + this.mc = mc; + } /** * Creates a <code>Statement</code> object for sending @@ -86,7 +98,7 @@ * @exception SQLException if a database access error occurs */ public Statement createStatement() throws SQLException { - return null; + return new FBStatement(mc); } Index: FBStatement.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc/FBStatement.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- FBStatement.java 2001/05/09 14:26:29 1.1.1.1 +++ FBStatement.java 2001/05/25 19:52:52 1.2 @@ -32,6 +32,9 @@ import java.sql.SQLException; import java.sql.SQLWarning; +import org.firebirdsql.jca.FBManagedConnection; +import org.firebirdsql.gds.GDSException; + /** * * @see <related> @@ -56,6 +59,12 @@ * @see ResultSet */ public class FBStatement implements Statement { + + private FBManagedConnection mc; + + FBStatement(FBManagedConnection mc) { + this.mc = mc; + } /** * Executes an SQL statement that returns a single <code>ResultSet</code> object. @@ -314,7 +323,12 @@ * @see #getMoreResults */ public boolean execute(String sql) throws SQLException { - throw new SQLException("Not yet implemented"); + try { + return mc.executeSQL(sql); + } + catch (GDSException ge) { + throw new SQLException("GDS exception: " + ge.toString()); + } } Index: FBXAResource.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jdbc/FBXAResource.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- FBXAResource.java 2001/05/09 14:24:28 1.1.1.1 +++ FBXAResource.java 2001/05/25 19:52:52 1.2 @@ -45,15 +45,13 @@ public class FBXAResource implements XAResource { // private FBManagedConnection fbmc; -// private Xid current; private boolean active = false; private int timeout_ignored = 0; -// private Object kb = null;//knowledgebase -// public FBXAResource(FBManagedConnection fbmc) { -// this.fbmc = fbmc; -// } +/* public FBXAResource(FBManagedConnection fbmc) { + this.fbmc = fbmc; + }*/ /** |
From: David J. <d_j...@us...> - 2001-05-25 19:49:55
|
Update of /cvsroot/firebird/client-java/src/org/firebirdsql/gds In directory usw-pr-cvs1:/tmp/cvs-serv2394 Modified Files: GDS.java Log Message: Moved near-static variables to an inner class Index: GDS.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/gds/GDS.java,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- GDS.java 2001/05/25 16:09:37 1.2 +++ GDS.java 2001/05/25 19:49:52 1.3 @@ -1054,11 +1054,11 @@ int type) throws GDSException; - void isc_dsql_sql_info(isc_stmt_handle stmt_handle, + byte[] isc_dsql_sql_info(isc_stmt_handle stmt_handle, int item_length, byte[] items, - int buffer_length, - byte[] buffer) throws GDSException; + int buffer_length/*, + byte[] buffer*/) throws GDSException; int isc_vax_integer(byte[] buffer, int pos, int length); |
From: David J. <d_j...@us...> - 2001-05-25 19:46:22
|
Update of /cvsroot/firebird/client-java/src/org/firebirdsql/jgds In directory usw-pr-cvs1:/tmp/cvs-serv1337 Modified Files: GDS_Impl.java Log Message: Moved near-staic variables to an inner class Index: GDS_Impl.java =================================================================== RCS file: /cvsroot/firebird/client-java/src/org/firebirdsql/jgds/GDS_Impl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- GDS_Impl.java 2001/05/25 16:18:06 1.2 +++ GDS_Impl.java 2001/05/25 19:46:20 1.3 @@ -155,10 +155,10 @@ // Temporal response packet data - private int resp_object; +/* private int resp_object; private long resp_blob_id; private byte[] resp_data; - +*/ public GDS_Impl() { } @@ -216,14 +216,14 @@ db.out.writeTyped(isc_dpb_version1, (Xdrable)c); // db.out.writeBuffer(dpb, dpb_length); System.out.println("sent"); - + try { - receiveResponse(db); + Response r = receiveResponse(db); + db.setRdb_id(r.resp_object); } catch (GDSException g) { disconnect(db); throw g; } - db.setRdb_id(resp_object); } catch (IOException ex) { throw new GDSException(isc_net_write_err); } @@ -278,13 +278,13 @@ System.out.println("sent"); try { - receiveResponse(db); + Response r = receiveResponse(db); + db.setRdb_id(r.resp_object); } catch (GDSException ge) { disconnect(db); throw ge; } - db.setRdb_id(resp_object); } catch (IOException ex) { throw new GDSException(isc_net_write_err); } @@ -368,12 +368,12 @@ // db.out.writeBuffer(tpb, tpb_length); System.out.println("sent"); //out.flush(); - receiveResponse(db); + Response r = receiveResponse(db); + tr.rtr_id = r.resp_object; } catch (IOException ex) { throw new GDSException(isc_network_error); } - tr.rtr_id = resp_object; tr.rtr_rdb = db; tr.setState(isc_tr_handle.TRANSACTIONSTARTED); db.rdb_transactions.addElement(tr); @@ -523,12 +523,12 @@ db.out.writeInt(op_allocate_statement); db.out.writeInt(db.getRdb_id()); System.out.println("sent"); - receiveResponse(db); + Response r =receiveResponse(db); + stmt.rsr_id = r.resp_object; } catch (IOException ex) { throw new GDSException(isc_net_read_err); } - stmt.rsr_id = resp_object; stmt.rsr_rdb = db; db.rdb_sql_requests.addElement(stmt); @@ -556,11 +556,12 @@ isc_info_sql_alias, isc_info_sql_describe_end }; - byte[] buffer = new byte[32000]; +// byte[] buffer = new byte[32000]; + int buffer_length = 32000; - isc_dsql_sql_info(stmt_handle, + byte[] buffer = isc_dsql_sql_info(stmt_handle, describe_select_info.length, describe_select_info, - buffer.length, buffer); + buffer_length/*, buffer*/); parseSqlInfo(buffer, xsqlda); } @@ -583,11 +584,12 @@ isc_info_sql_alias, isc_info_sql_describe_end }; - byte[] buffer = new byte[32000]; +// byte[] buffer = new byte[32000]; + int buffer_length = 32000; - isc_dsql_sql_info(stmt_handle, + byte[] buffer = isc_dsql_sql_info(stmt_handle, describe_bind_info.length, describe_bind_info, - buffer.length, buffer); + buffer_length/*, buffer*/); parseSqlInfo(buffer, xsqlda); } @@ -834,9 +836,9 @@ isc_info_sql_owner, isc_info_sql_alias, isc_info_sql_describe_end }; - - byte[] buffer = new byte[32000]; +// byte[] buffer = new byte[32000]; + int buffer_length = 32000; try { System.out.print("op_prepare_statement "); db.out.writeInt(op_prepare_statement); @@ -845,12 +847,12 @@ db.out.writeInt(dialect); db.out.writeString(statement); db.out.writeBuffer(sql_prepare_info, sql_prepare_info.length); - db.out.writeInt(buffer.length); + db.out.writeInt(buffer_length); System.out.println("sent"); - receiveResponse(db); - System.arraycopy(resp_data, 0, buffer, 0, resp_data.length); - parseSqlInfo(buffer, xsqlda); + Response r = receiveResponse(db); +// System.arraycopy(resp_data, 0, buffer, 0, resp_data.length); + parseSqlInfo(r.resp_data, xsqlda); } catch (IOException ex) { throw new GDSException(isc_net_read_err); } @@ -893,11 +895,11 @@ } - public void isc_dsql_sql_info(isc_stmt_handle stmt_handle, + public byte[] isc_dsql_sql_info(isc_stmt_handle stmt_handle, int item_length, byte[] items, - int buffer_length, - byte[] buffer) throws GDSException { + int buffer_length/*, + byte[] buffer*/) throws GDSException { isc_stmt_handle_impl stmt = (isc_stmt_handle_impl) stmt_handle; isc_db_handle_impl db = stmt.rsr_rdb; @@ -909,12 +911,13 @@ db.out.writeBuffer(items, item_length); db.out.writeInt(buffer_length); System.out.println("sent"); - receiveResponse(db); + Response r = receiveResponse(db); + return r.resp_data; } catch (IOException ex) { throw new GDSException(isc_net_read_err); } - System.arraycopy(resp_data, 0, buffer, 0, resp_data.length); +// System.arraycopy(resp_data, 0, buffer, 0, resp_data.length); } @@ -1042,15 +1045,17 @@ } } - private void receiveResponse(isc_db_handle_impl db) throws GDSException { + private Response receiveResponse(isc_db_handle_impl db) throws GDSException { try { System.out.print("op_response "); if (readOperation(db) == op_response) { - resp_object = db.in.readInt(); - resp_blob_id = db.in.readLong(); - resp_data = db.in.readBuffer(); + Response r = new Response(); + r.resp_object = db.in.readInt(); + r.resp_blob_id = db.in.readLong(); + r.resp_data = db.in.readBuffer(); readStatusVector(db); System.out.println("received"); + return r; } else { System.out.println("not received"); throw new GDSException(isc_net_read_err); @@ -1570,6 +1575,12 @@ public Clumplet newClumplet(int type, byte[] content) { return new ClumpletImpl(type, content); + } + + private static class Response { + int resp_object; + long resp_blob_id; + byte[] resp_data; } |
From: John B. <bel...@us...> - 2001-05-25 18:29:24
|
Update of /cvsroot/firebird/interbase/firebird/bellardo In directory usw-pr-cvs1:/tmp/cvs-serv10317 Added Files: nightly_build_script Log Message: Initial version of my very rough nightly build script. --- nightly_build_script ADDED --- |
From: John B. <bel...@us...> - 2001-05-25 17:21:35
|
Update of /cvsroot/firebird/interbase/utilities In directory usw-pr-cvs1:/tmp/cvs-serv27499 Modified Files: drop.c dropv3.c Log Message: Fixed linux platform error introduced by the original darwin port. Index: drop.c =================================================================== RCS file: /cvsroot/firebird/interbase/utilities/drop.c,v retrieving revision 1.5 retrieving revision 1.6 diff -U3 -r1.5 -r1.6 --- drop.c 2001/05/24 04:11:12 1.5 +++ drop.c 2001/05/25 17:21:32 1.6 @@ -299,7 +299,9 @@ SLONG length, key, semid; TEXT expanded_filename [MAXPATHLEN]; int pid; +#ifdef DARWIN union semun semctlArg; +#endif #ifdef MANAGER_PROCESS /* Shutdown lock manager process so that shared memory @@ -334,8 +336,12 @@ return; } +#ifdef DARWIN semctlArg.val = 0; if (semctl (semid, sem_count, IPC_RMID, semctlArg) == -1) +#else +if (semctl (semid, sem_count, IPC_RMID, 0) == -1) +#endif ib_printf ("\n***Error trying to drop %s semaphores. ERRNO = %d.\n", label, errno); else ib_printf ("Successfully removed %s semaphores.\n", label); Index: dropv3.c =================================================================== RCS file: /cvsroot/firebird/interbase/utilities/dropv3.c,v retrieving revision 1.2 retrieving revision 1.3 diff -U3 -r1.2 -r1.3 --- dropv3.c 2001/05/24 04:11:12 1.2 +++ dropv3.c 2001/05/25 17:21:32 1.3 @@ -304,7 +304,9 @@ long length, key, shmid, semid; TEXT expanded_filename [512], hostname [64]; struct stat stat_buf; +#ifdef DARWIN union semun semctlArg; +#endif #ifdef NOHOSTNAME strcpy (expanded_filename, filename); @@ -334,8 +336,12 @@ return; } +#ifdef DARWIN semctlArg.val = 0; if (semctl (semid, sem_count, IPC_RMID, semctlArg) == -1) +#else +if (semctl (semid, sem_count, IPC_RMID, 0) == -1) +#endif ib_printf ("\n***Error trying to drop bridge %s semaphores. ERRNO = %d.\n", label, errno); else ib_printf ("Successfully removed bridge %s semaphores.\n", label); |
From: David J. <d_j...@us...> - 2001-05-25 16:25:25
|
Update of /cvsroot/firebird/client-java/src/build In directory usw-pr-cvs1:/tmp/cvs-serv13634 Modified Files: build.xml Log Message: Updated build file to include junit tests Index: build.xml =================================================================== RCS file: /cvsroot/firebird/client-java/src/build/build.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -U3 -r1.1.1.1 -r1.2 --- build.xml 2001/05/09 14:22:59 1.1.1.1 +++ build.xml 2001/05/25 16:25:23 1.2 @@ -4,13 +4,13 @@ <!-- JDBC-JCA Driver for Firebird build file --> <!-- ======================================================================= --> -<project name="FirebirdSQL" default="compile" basedir="../.."> - <target name="init"> +<project name="FirebirdSQL" default="jmx.jar" basedir="../.."> <property name="Name" value="FirebirdSQL"/> <property name="name" value="firebirdsql"/> <property name="version" value="0.0"/> + <property name="lib.dir" value="${basedir}/lib"/> <property name="src.dir" value="${basedir}/src"/> <property name="src.docs.dir" value="${src.dir}/docs"/> @@ -27,22 +27,33 @@ <property name="external.dir" value="${dist.dir}/external"/> + <property name="classpath" value="${build.classes.dir};${src.lib.dir}/jta-spec1_0_1.jar;${src.lib.dir}/connector.jar;${src.lib.dir}/jdbc-3_0-pfd2-classes.zip;${src.lib.dir}/jaas.jar"/> <property name="packages" value="firebirdsql.jdbc, firebirdsql.jca"/> <property name="build.compiler" value="classic"/> - <available property="jdk1.3+" classname="java.lang.StrictMath" /> - </target> + <!--available property="jdk1.3+" classname="java.lang.StrictMath" /--> + <path id="cp"> + <pathelement location="${build.classes.dir}"/> + <pathelement location="${src.lib.dir}/jta-spec1_0_1.jar"/> + <pathelement location="${src.lib.dir}/connector.jar"/> + <pathelement location="${src.lib.dir}/jdbc-3_0-pfd2-classes.zip"/> + <pathelement location="${src.lib.dir}/jaas.jar"/> + <pathelement location="${src.lib.dir}/jmxri.jar"/> + <pathelement location="${lib.dir}/junit.jar"/> + </path> + <!-- =================================================================== --> <!-- Prepares the build directory --> <!-- =================================================================== --> - <target name="prepare" depends="init"> + <target name="prepare"> <mkdir dir="${build.dir}"/> <mkdir dir="${dist.dir}"/> <mkdir dir="${build.docs.dir}"/> + <mkdir dir="${basedir}/db"/> </target> <!-- =================================================================== --> @@ -52,12 +63,13 @@ <mkdir dir="${build.classes.dir}"/> <javac srcdir="${src.dir}" destdir="${build.classes.dir}" - classpath="${classpath}" debug="off" deprecation="off" optimize="on" includes="org/**" - /> + > + <classpath refid="cp"/> + </javac> </target> <!-- =================================================================== --> @@ -75,6 +87,38 @@ /> </target> + <target name="junit" depends="jmx.jar"> + <junit> + <classpath> + <path refid="cp"/> + <pathelement location="${build.classes.dir}"/> + </classpath> + <formatter type="plain" usefile="false"/> + <test name="org.firebirdsql.jgds.TestGds"/> + <test name="org.firebirdsql.jca.TestFBManagedConnectionFactory"/> + </junit> + </target> + + <!-- =================================================================== --> + <!-- Creates the jmx-jar archives --> + <!-- =================================================================== --> + <target name="jmx.jar" depends="compile"> + <mkdir dir="${build.dir}/META-INF"/> + <copy todir="${build.dir}/META-INF"> + <fileset dir="${src.resources.dir}"/> + </copy> + + <jar jarfile="${dist.dir}/firebirdjmx.jar" + basedir="${build.classes.dir}" + includes="**/gds/**, **/jgds/**, **/management/**, **/META-INF/**" + excludes="**/test/**" + /> + <copy todir="/usr/java/jboss/dev/jboss/dist/lib/ext"> + <fileset dir="${dist.dir}" includes="firebirdjmx.jar"/> + </copy> + </target> + + <!-- =================================================================== --> <!-- Creates the rar archives --> @@ -160,7 +204,7 @@ <!-- =================================================================== --> <!-- Packages the source files with ZIP --> <!-- =================================================================== --> - <target name="src-zip" depends="init"> + <target name="src-zip"> <zip zipfile="${Name}-src-${version}.zip" basedir="../.." includes="clients/java/**" excludes="clients/java/**.zip"/> </target> @@ -182,7 +226,7 @@ <!-- =================================================================== --> <!-- Cleans up generated stuff --> <!-- =================================================================== --> - <target name="clean" depends="init"> + <target name="clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> |