8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Changed the default extensions for databases from .gdb to .fdb

The Windows and OS X builds have not been updated yet.
This commit is contained in:
eku 2003-03-17 12:06:48 +00:00
parent ca703eb963
commit ceb9d33c9d
86 changed files with 208 additions and 208 deletions

View File

@ -29,7 +29,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.codes,v 1.3 2003-02-28 05:22:09 aafemt Exp $
# $Id: Makefile.in.codes,v 1.4 2003-03-17 12:05:44 eku Exp $
#
ROOT=..
ObjModuleName=codes
@ -65,7 +65,7 @@ generated_headers: build_codes include/gen/ids.h
# Rebuild error codes
build_codes: $(BIN)/codes msg.gdb
build_codes: $(BIN)/codes msg.fdb
$(BIN)/codes include/gen
$(SRC)/jrd/codes.cpp: $(SRC)/jrd/codes.epp

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.embed.qli,v 1.5 2002-10-10 19:32:03 eku Exp $
# $Id: Makefile.in.embed.qli,v 1.6 2003-03-17 12:05:45 eku Exp $
#
ROOT=..
ObjModuleName=embed.qli
@ -63,11 +63,11 @@ $(QLI): create_yachts $(QLI_Objects) $(LIBFBEMBED_SO)
$(LD) $(LINK_OPTS) $(QLI_Objects) -o $@ -L$(LIB) -lfbembed $(LINK_LIBS)
$(CHMOD_S7) $@
# EKU: At this point yachts.lnk is a link to empty.gdb, but gpre will fail
# with it. metadata.gdb is what is needed here.
# EKU: At this point yachts.lnk is a link to empty.fdb, but gpre will fail
# with it. metadata.fdb is what is needed here.
create_yachts:
-rm -f yachts.lnk
-ln -fs $(SRC_ROOT)/metadata.gdb yachts.lnk
-ln -fs $(SRC_ROOT)/metadata.fdb yachts.lnk
# qli_help

View File

@ -26,7 +26,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.example5,v 1.3 2002-09-24 13:01:12 eku Exp $
# $Id: Makefile.in.example5,v 1.4 2003-03-17 12:05:47 eku Exp $
#
ROOT=../..
@ -69,8 +69,8 @@ all: v5_examples
# PR 2002-06-23 - Temporarily removed intlemp from the build as it caused a segfault
# The lines to change back are prefixed with ##
##v5_examples: employee.gdb intlemp.gdb $(NT_EXAMPLES) makefile.example
v5_examples: employee.gdb $(NT_EXAMPLES) makefile.example
##v5_examples: employee.fdb intlemp.fdb $(NT_EXAMPLES) makefile.example
v5_examples: employee.fdb $(NT_EXAMPLES) makefile.example
$(CP) $(EXAMPLES_SRC)readme $(EXAMPLES_DEST)README
$(CP) $(EXAMPLES_SRC)align.h $(EXAMPLES_DEST)align.h
$(CP) $(EXAMPLES_SRC)api1.c $(EXAMPLES_DEST)api1.c
@ -100,14 +100,14 @@ v5_examples: employee.gdb $(NT_EXAMPLES) makefile.example
$(CP) $(EXAMPLES_SRC)dyn5.e $(EXAMPLES_DEST)dyn5.e
$(CP) $(EXAMPLES_SRC)dynfull.e $(EXAMPLES_DEST)dynfull.e
echo $(LD_LIBRARY_PATH)
$(GBAK) employee.gdb $(EXAMPLES_DEST)employee.gbk
# -$(RM) $(EXAMPLES_DEST)employee.gdb
$(GBAK) -r $(EXAMPLES_DEST)employee.gbk $(EXAMPLES_DEST)employee.gdb
$(GBAK) employee.fdb $(EXAMPLES_DEST)employee.gbk
# -$(RM) $(EXAMPLES_DEST)employee.fdb
$(GBAK) -r $(EXAMPLES_DEST)employee.gbk $(EXAMPLES_DEST)employee.fdb
$(CP) $(EXAMPLES_SRC)example.h $(EXAMPLES_DEST)example.h
$(CP) $(EXAMPLES_SRC)api9f.sql $(EXAMPLES_DEST)api9f.sql
## $(GBAK) intlemp.gdb $(EXAMPLES_DEST)intlemp.gbk
# -$(RM) $(EXAMPLES_DEST)intlemp.gdb
## $(GBAK) -r $(EXAMPLES_DEST)intlemp.gbk $(EXAMPLES_DEST)intlemp.gdb
## $(GBAK) intlemp.fdb $(EXAMPLES_DEST)intlemp.gbk
# -$(RM) $(EXAMPLES_DEST)intlemp.fdb
## $(GBAK) -r $(EXAMPLES_DEST)intlemp.gbk $(EXAMPLES_DEST)intlemp.fdb
$(CP) $(EXAMPLES_SRC)stat1.e $(EXAMPLES_DEST)stat1.e
$(CP) $(EXAMPLES_SRC)stat10.e $(EXAMPLES_DEST)stat10.e
$(CP) $(EXAMPLES_SRC)stat11.e $(EXAMPLES_DEST)stat11.e
@ -131,13 +131,13 @@ nt_examples:
$(CP) $(EXAMPLES_SRC)makefile.bc $(EXAMPLES_DEST)Makefile.bc
$(CP) $(EXAMPLES_SRC)makefile.msc $(EXAMPLES_DEST)Makefile.msc
# Ok the following little story is, first build empbuild.gdb an empty db
# Ok the following little story is, first build empbuild.fdb an empty db
# using a script file. Then we can compile the empbuild.e file, then we
# can run it to create employee.gdb database populated with data by the
# can run it to create employee.fdb database populated with data by the
# program. Thats how I found it.
employee.gdb: empbuild$(EXEC_EXT) $(INPUT_FILES)
-$(RM) employee.gdb
employee.fdb: empbuild$(EXEC_EXT) $(INPUT_FILES)
-$(RM) employee.fdb
# $(CP) $(SOURCE)/examples/empddl.sql .
# $(CP) $(SOURCE)/examples/indexoff.sql .
# $(CP) $(SOURCE)/examples/indexon.sql .
@ -146,8 +146,8 @@ employee.gdb: empbuild$(EXEC_EXT) $(INPUT_FILES)
# $(CP) $(SOURCE)/examples/proj.inp .
# $(CP) $(SOURCE)/examples/job.inp .
# $(CP) $(SOURCE)/examples/qtr.inp .
./empbuild employee.gdb
-$(CHMOD_6) employee.gdb
./empbuild employee.fdb
-$(CHMOD_6) employee.fdb
empbuild: $(EMPBLD_OBJ) $(LIBGDS_DEP)
-$(RM) $@
@ -158,29 +158,29 @@ empbuild.exe: $(EMPBLD_OBJ)
-$(RM) empbuild.exe
$(LD) $(O_EXE_SWITCH)empbuild $(LINK_OPTS) empbuild.o $(GDS_LINK)
empbuild.c: empbuild.gdb empbuild.e
empbuild.c: empbuild.fdb empbuild.e
empbuild.gdb : empddl.sql empbld.sql
empbuild.fdb : empddl.sql empbld.sql
-$(RM) $@
$(ISQL) -i empbld.sql
# The chain for intlemp.gdb is the same a script file to create an empty database
# The chain for intlemp.fdb is the same a script file to create an empty database
# to allow a .e program to be compiled, to then create and populate with data
# the intlemp.gdb database.
# the intlemp.fdb database.
intlemp.gdb: intlbld$(EXEC_EXT) $(INTL_FILES)
-$(RM) intlemp.gdb
intlemp.fdb: intlbld$(EXEC_EXT) $(INTL_FILES)
-$(RM) intlemp.fdb
# $(CP) $(SOURCE)/examples/intlddl.sql .
# $(CP) $(SOURCE)/examples/indexoff.sql .
# $(CP) $(SOURCE)/examples/indexon.sql .
# $(CP) $(SOURCE)/examples/intldml.sql .
# $(CP) $(SOURCE)/examples/lang.inp .
./intlbld intlemp.gdb
-$(CHMOD_6) intlemp.gdb
./intlbld intlemp.fdb
-$(CHMOD_6) intlemp.fdb
intlbuild.gdb : intlddl.sql intlbld.sql
-$(RM) intlbuild.gdb
intlbuild.fdb : intlddl.sql intlbld.sql
-$(RM) intlbuild.fdb
$(ISQL) -i intlbld.sql
intlbld: $(INTLBLD_OBJ) $(LIBGDS_DEP)
@ -193,7 +193,7 @@ intlbld.exe: $(INTLBLD_OBJ)
$(LD) $(O_EXE_SWITCH)intlbld $(LINK_OPTS) intlbld.o $(GDS_LINK)
intlbld.c: intlbuild.gdb intlbld.e
intlbld.c: intlbuild.fdb intlbld.e

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.firebird,v 1.30 2003-03-12 12:39:56 eku Exp $
# $Id: Makefile.in.firebird,v 1.31 2003-03-17 12:05:48 eku Exp $
#
ROOT=..
@ -476,7 +476,7 @@ $(INCLUDE_DEST)/ib_util.h : $(SRC_OtherDistribHeaders)
#___________________________________________________________________________
# When the msgs.gdb dataabse has changed with new messages a number of header
# When the msgs.fdb dataabse has changed with new messages a number of header
# files need to be regenerated. This is the target to do it. These new
# header files (placed in include/gen) then need to be committed since they
# are not generally rebuilt from scratch
@ -557,7 +557,7 @@ clean_config: clean clean_makefiles
# Not sure if this one is still needed MOD 7-Oct-2002
clean_dbs:
-rm -f refDatabases/*\.gdb
-rm -f refDatabases/*\.fdb
clean_objects:

View File

@ -29,7 +29,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.jrd,v 1.8 2003-03-06 00:39:27 brodsom Exp $
# $Id: Makefile.in.jrd,v 1.9 2003-03-17 12:05:49 eku Exp $
#
ROOT=../..
@ -707,12 +707,12 @@ build_alt_use_main: alt_use_sec.h.pre
#$(SRC)/codes.cpp: $(SRC)/codes.epp
codes.cpp: $(SRC)/codes.epp msg.gdb
codes.cpp: $(SRC)/codes.epp msg.fdb
$(GPRE) -n -manual -raw -string $< $@
msg.gdb:
ln -fs $(SRC_ROOT)/refDatabases/msg.gdb msg.gdb
msg.fdb:
ln -fs $(SRC_ROOT)/refDatabases/msg.fdb msg.fdb
#$(SRC)/fun.cpp: $(SRC)/fun.epp
# $(GPRE) -n -gds -raw -ids $< $@

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.msgs,v 1.6 2002-10-07 01:29:09 skywalker Exp $
# $Id: Makefile.in.msgs,v 1.7 2003-03-17 12:05:49 eku Exp $
#
ROOT=..
ObjModuleName=msgs
@ -147,7 +147,7 @@ indicator.loc:
master_msg_db:
ln -fs $(SRC_ROOT)/msg.gdb master_msg_db
ln -fs $(SRC_ROOT)/msg.fdb master_msg_db

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.refDatabases,v 1.12 2003-02-10 11:54:30 dimitr Exp $
# $Id: Makefile.in.refDatabases,v 1.13 2003-03-17 12:05:50 eku Exp $
#
ROOT=..
ObjModuleName=refDatabases
@ -62,9 +62,9 @@ export INTERBASE
# superuser. You do not have to be root to build classic, it's just a warning
# and the build process works fine.
empty_db : empty.gdb yachts.lnk
empty_db : empty.fdb yachts.lnk
empty.gdb : $(BIN)/create_db
empty.fdb : $(BIN)/create_db
-$(RM) $@
$(BIN)/create_db $@
touch $@
@ -73,9 +73,9 @@ empty.gdb : $(BIN)/create_db
# Ok so Jim had/has a sailing theme, and the sample database that a lot
# of .epp files require to compile is yachts.lnk. MOD 05-Aug-2002
yachts.lnk: empty.gdb
yachts.lnk: empty.fdb
$(RM) -f yachts.lnk
ln -fs $(SRC_ROOT)/empty.gdb yachts.lnk
ln -fs $(SRC_ROOT)/empty.fdb yachts.lnk
@ -84,18 +84,18 @@ yachts.lnk: empty.gdb
.PHONY: ref_databases
ref_databases : msg.gdb help.gdb metadata.gdb security.fdb
ref_databases : msg.fdb help.fdb metadata.fdb security.fdb
msg.gdb: $(SRC_ROOT)/msgs/msg.gbak
msg.fdb: $(SRC_ROOT)/msgs/msg.gbak
$(BIN)/gbak_static -MODE read_only -R $< $@
touch $@
chmod 444 $@
help.gdb: $(FIREBIRD)/help/help.gdb
help.fdb: $(FIREBIRD)/help/help.fdb
$(RM) -f $@
ln -fs $^ $@
$(FIREBIRD)/help/help.gdb: $(SRC_ROOT)/misc/help.gbak
$(FIREBIRD)/help/help.fdb: $(SRC_ROOT)/misc/help.gbak
$(BIN)/gbak_static -MODE read_only -R $< $@
touch $@
chmod 444 $@
@ -109,7 +109,7 @@ $(FIREBIRD)/security.fdb: $(SRC_ROOT)/misc/security.gbak
touch $@
chmod 666 $@
metadata.gdb: $(SRC_ROOT)/misc/metadata.gbak
metadata.fdb: $(SRC_ROOT)/misc/metadata.gbak
$(BIN)/gbak_static -MODE read_only -R $< $@
touch $@
chmod 444 $@
@ -117,7 +117,7 @@ metadata.gdb: $(SRC_ROOT)/misc/metadata.gbak
# An alternative metadata creation method, this one is actually preferred
# since it ensures the data is valid.
metadata.gdb.x: $(SRC_ROOT)/misc/metadata.sql
metadata.fdb.x: $(SRC_ROOT)/misc/metadata.sql
$(BIN)/isql -i $<
touch $@
chmod 444 $@

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: Makefile.in.v5_examples,v 1.4 2002-10-07 01:29:09 skywalker Exp $
# $Id: Makefile.in.v5_examples,v 1.5 2003-03-17 12:05:51 eku Exp $
#
ROOT=../..
ObjModuleName=v5_examples
@ -73,8 +73,8 @@ all: v5_examples
# PR 2002-06-23 - Temporarily removed intlemp from the build as it caused a segfault
# The lines to change back are prefixed with ##
##v5_examples: employee.gdb intlemp.gdb $(EXAMPLE_SRC)Makefile
v5_examples: employee.gdb nt_examples
##v5_examples: employee.fdb intlemp.fdb $(EXAMPLE_SRC)Makefile
v5_examples: employee.fdb nt_examples
$(CP) $(EXAMPLES_SRC)readme $(EXAMPLES_DEST)README
$(CP) $(EXAMPLES_SRC)align.h $(EXAMPLES_DEST)align.h
$(CP) $(EXAMPLES_SRC)api1.c $(EXAMPLES_DEST)api1.c
@ -104,14 +104,14 @@ v5_examples: employee.gdb nt_examples
$(CP) $(EXAMPLES_SRC)dyn5.e $(EXAMPLES_DEST)dyn5.e
$(CP) $(EXAMPLES_SRC)dynfull.e $(EXAMPLES_DEST)dynfull.e
echo $(LD_LIBRARY_PATH)
$(GBAK_STATIC) employee.gdb $(EXAMPLES_DEST)employee.gbk
# -$(RM) $(EXAMPLES_DEST)employee.gdb
$(GBAK_STATIC) -r $(EXAMPLES_DEST)employee.gbk $(EXAMPLES_DEST)employee.gdb
$(GBAK_STATIC) employee.fdb $(EXAMPLES_DEST)employee.gbk
# -$(RM) $(EXAMPLES_DEST)employee.fdb
$(GBAK_STATIC) -r $(EXAMPLES_DEST)employee.gbk $(EXAMPLES_DEST)employee.fdb
$(CP) $(EXAMPLES_SRC)example.h $(EXAMPLES_DEST)example.h
$(CP) $(EXAMPLES_SRC)api9f.sql $(EXAMPLES_DEST)api9f.sql
## $(GBAK_STATIC) intlemp.gdb $(EXAMPLES_DEST)intlemp.gbk
# -$(RM) $(EXAMPLES_DEST)intlemp.gdb
## $(GBAK_STATIC) -r $(EXAMPLES_DEST)intlemp.gbk $(EXAMPLES_DEST)intlemp.gdb
## $(GBAK_STATIC) intlemp.fdb $(EXAMPLES_DEST)intlemp.gbk
# -$(RM) $(EXAMPLES_DEST)intlemp.fdb
## $(GBAK_STATIC) -r $(EXAMPLES_DEST)intlemp.gbk $(EXAMPLES_DEST)intlemp.fdb
$(CP) $(EXAMPLES_SRC)stat1.e $(EXAMPLES_DEST)stat1.e
$(CP) $(EXAMPLES_SRC)stat10.e $(EXAMPLES_DEST)stat10.e
$(CP) $(EXAMPLES_SRC)stat11.e $(EXAMPLES_DEST)stat11.e
@ -135,9 +135,9 @@ nt_examples:
# $(CP) $(EXAMPLES_SRC)makefile.bc $(EXAMPLES_DEST)Makefile.bc
# $(CP) $(EXAMPLES_SRC)makefile.msc $(EXAMPLES_DEST)Makefile.msc
# Ok the following little story is, first build empbuild.gdb an empty db
# Ok the following little story is, first build empbuild.fdb an empty db
# using a script file. Then we can compile the empbuild.e file, then we
# can run it to create employee.gdb database populated with data by the
# can run it to create employee.fdb database populated with data by the
# program. Thats how I found it.
# MOD July-2001
#
@ -147,10 +147,10 @@ nt_examples:
# MOD 28-July-2002
employee.gdb: empbuild$(EXEC_EXT) $(INPUT_FILES) isql
-$(RM) employee.gdb
./empbuild employee.gdb
-$(CHMOD_6) employee.gdb
employee.fdb: empbuild$(EXEC_EXT) $(INPUT_FILES) isql
-$(RM) employee.fdb
./empbuild employee.fdb
-$(CHMOD_6) employee.fdb
# To get past the fact isql is called from the programs, we create a local link
# to the static one in this directory
@ -165,30 +165,30 @@ empbuild.exe: $(EMPBLD_OBJ)
-$(RM) empbuild.exe
$(CC) $(O_EXE_SWITCH)empbuild $(LINK_OPTS) empbuild.o $(GDS_LINK)
empbuild.c: empbuild.gdb empbuild.e
empbuild.c: empbuild.fdb empbuild.e
empbuild.gdb : $(EXAMPLES_SRC)/empddl.sql $(EXAMPLES_SRC)/empbld.sql
empbuild.fdb : $(EXAMPLES_SRC)/empddl.sql $(EXAMPLES_SRC)/empbld.sql
-$(CP) $^ .
-$(RM) $@
$(ISQL_STATIC) -i empbld.sql
# The chain for intlemp.gdb is the same a script file to create an empty database
# The chain for intlemp.fdb is the same a script file to create an empty database
# to allow a .e program to be compiled, to then create and populate with data
# the intlemp.gdb database.
# the intlemp.fdb database.
intlemp.gdb: intlbld$(EXEC_EXT) $(INTL_FILES)
-$(RM) intlemp.gdb
intlemp.fdb: intlbld$(EXEC_EXT) $(INTL_FILES)
-$(RM) intlemp.fdb
# $(CP) $(SOURCE)/examples/intlddl.sql .
# $(CP) $(SOURCE)/examples/indexoff.sql .
# $(CP) $(SOURCE)/examples/indexon.sql .
# $(CP) $(SOURCE)/examples/intldml.sql .
# $(CP) $(SOURCE)/examples/lang.inp .
./intlbld intlemp.gdb
-$(CHMOD_6) intlemp.gdb
./intlbld intlemp.fdb
-$(CHMOD_6) intlemp.fdb
intlbuild.gdb : intlddl.sql intlbld.sql
-$(RM) intlbuild.gdb
intlbuild.fdb : intlddl.sql intlbld.sql
-$(RM) intlbuild.fdb
$(ISQL_STATIC) -i intlbld.sql
@ -201,7 +201,7 @@ intlbld.exe: $(INTLBLD_OBJ)
$(CC) $(O_EXE_SWITCH)intlbld $(LINK_OPTS) intlbld.o $(GDS_LINK)
intlbld.c: intlbuild.gdb intlbld.e
intlbld.c: intlbuild.fdb intlbld.e

View File

@ -27,7 +27,7 @@
# Contributor(s):
#
#
# $Id: make.shared.targets,v 1.5 2003-02-28 05:22:10 aafemt Exp $
# $Id: make.shared.targets,v 1.6 2003-03-17 12:05:51 eku Exp $
#
@ -72,16 +72,16 @@ $(SRC)/gpre/gpre_meta.cpp: $(SRC)/gpre/gpre_meta.epp
buildb: security.fdb yachts.lnk help.gdb
buildb: security.fdb yachts.lnk help.fdb
security.fdb : $(ISC_GDB)
-ln -sf $(ISC_GDB) $@
yachts.lnk:
-ln -fs $(SRC_ROOT)/refDatabases/empty.gdb yachts.lnk
-ln -fs $(SRC_ROOT)/refDatabases/empty.fdb yachts.lnk
help.gdb:
-ln -fs $(SRC_ROOT)/refDatabases/help.gdb help.gdb
help.fdb:
-ln -fs $(SRC_ROOT)/refDatabases/help.fdb help.fdb
@ -89,7 +89,7 @@ help.gdb:
$(SRC)/dudley/exe.cpp $(SRC)/dudley/extract.epp: yachts.lnk
$(SRC)/qli/meta.cpp $(SRC)/qli/proc.cpp $(SRC)/qli/show.cpp: yachts.lnk
$(SRC)/qli/help.cpp: help.gdb
$(SRC)/qli/help.cpp: help.fdb
# Explicit dependence on generated header
$(OBJ)/jrd/par.o: $(SRC)/include/gen/blrtable.h

View File

@ -1,4 +1,4 @@
# $Id: prototype.in,v 1.13 2003-03-11 07:35:45 eku Exp $
# $Id: prototype.in,v 1.14 2003-03-17 12:06:08 eku Exp $
#-------------------------------------------------------------------------------
!SRCDIR=@NEW_FIREBIRD_DIR@
@ -54,7 +54,7 @@ f none @prefix@/bin/qli=$SRCDIR/bin/qli 0755 root root
#d none @prefix@/examples/v5 0755 root root
d none @prefix@/help 0755 root root
f none @prefix@/help/help.gdb=$SRCDIR/help/help.gdb 0444 root root
f none @prefix@/help/help.fdb=$SRCDIR/help/help.fdb 0444 root root
d none @prefix@/include 0755 root root
f none @prefix@/include/blr.h=$SRCDIR/include/blr.h 0644 root root

View File

@ -235,7 +235,7 @@ void GJRN_get_msg(
**************************************
*
* Functional description
* Gets a string from the msg.gdb filling in the required params.
* Gets a string from the msg.fdb filling in the required params.
*
**************************************/

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "journal.gdb";
define database "journal.fdb";
define field db_id long;
define field file_id long;

View File

@ -52,7 +52,7 @@ extern int errno;
#endif
#ifndef JOURNAL_DB
#define JOURNAL_DB "journal.gdb"
#define JOURNAL_DB "journal.fdb"
#endif
typedef struct blk {
@ -64,7 +64,7 @@ typedef struct blk {
#include "../jrd/jrn.h"
#include "../jrd/license.h"
DATABASE DB = "journal.gdb";
DATABASE DB = "journal.fdb";
extern struct tm *localtime();
extern UCHAR *gds__alloc();

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "journal.gdb";
define database "journal.fdb";
define relation journal
status varying [9],

View File

@ -106,9 +106,9 @@ extern int errno;
#define MOVE_BYTE(x_from,x_to) *x_to++ = *x_from++;
DATABASE DB =
STATIC COMPILETIME FILENAME "journal.gdb" RUNTIME FILENAME journal_dir;
STATIC COMPILETIME FILENAME "journal.fdb" RUNTIME FILENAME journal_dir;
DATABASE DB_NEW =
STATIC COMPILETIME FILENAME "journal.gdb" RUNTIME FILENAME db_name;
STATIC COMPILETIME FILENAME "journal.fdb" RUNTIME FILENAME db_name;
/* Page cache */
@ -3273,7 +3273,7 @@ static void rec_restore(SCHAR * journal_name, SCHAR * dbn)
else if (journal_dir[size - 1] == '\\')
size--;
#endif
strcpy(journal_dir + size, "/journal.gdb");
strcpy(journal_dir + size, "/journal.fdb");
READY journal_dir AS DB
ON_ERROR
rebuild_abort(152);

View File

@ -120,7 +120,7 @@
DATABASE
DB =
STATIC COMPILETIME FILENAME "journal.gdb" RUNTIME FILENAME journal_db;
STATIC COMPILETIME FILENAME "journal.fdb" RUNTIME FILENAME journal_db;
#define LOGFILE "journal.log"
#define MAX_CHANNEL 64
@ -3294,7 +3294,7 @@ static int start_server(UCHAR * journal_dir,
/* Check in with database */
strcpy(journal_db, journal_directory);
strcpy(journal_db + len - 1, "/journal.gdb");
strcpy(journal_db + len - 1, "/journal.fdb");
READY
ON_ERROR

View File

@ -33,7 +33,7 @@
/* The MSG.GDB database is found under the /msgs component subdirectory.
Use links or logicals to point it there, thanks! AMG */
DATABASE DB = FILENAME "msg.gdb";
DATABASE DB = FILENAME "msg.fdb";
#define CODES_PAS "gds_codes.pas"
#define CODES_FTN "gds_codes.ftn"

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
modify database "bar.gdb";
modify database "bar.fdb";
define field default_no char[3] missing_value "NO";

View File

@ -26,7 +26,7 @@
#include "../jrd/common.h"
#include "../jrd/gds.h"
database db = "source/jrd/gds_functions.gdb";
database db = "source/jrd/gds_functions.fdb";
typedef enum mech_t
{

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "bar.gdb";
define database "bar.fdb";
/*
define generator RDB$SECURITY_CLASS;

View File

@ -90,7 +90,7 @@
#define LOGICAL_NAME_TABLE "LNM$FILE_DEV"
#define DEFAULT_FILE_NAME ".gdb"
#define DEFAULT_FILE_NAME ".fdb"
#define INET_FLAG '^'
typedef struct itm {
@ -773,7 +773,7 @@ int ISC_expand_filename(
length = JRD_getdir(expanded_name, MAXPATHLEN);
if (length && length < MAXPATHLEN) {
/**
case where temp is of the form "c:foo.gdb" and
case where temp is of the form "c:foo.fdb" and
expanded_name is "c:\x\y".
**/
if (drive_letter_present && device[0] == expanded_name[0]) {
@ -781,7 +781,7 @@ int ISC_expand_filename(
strcat(expanded_name, temp + 2);
}
/**
case where temp is of the form "foo.gdb" and
case where temp is of the form "foo.fdb" and
expanded_name is "c:\x\y".
**/
else if (!drive_letter_present) {
@ -790,17 +790,17 @@ int ISC_expand_filename(
}
else {
/**
case where temp is of the form "d:foo.gdb" and
case where temp is of the form "d:foo.fdb" and
expanded_name is "c:\x\y".
Discard expanded_name and use temp as it is.
**/
/* in this case use the temp but we need to ensure that we expand to
* temp from "d:foo.gdb" to "d:\foo.gdb" */
* temp from "d:foo.fdb" to "d:\foo.gdb" */
if (_fullpath(expanded_name, temp, MAXPATHLEN) != NULL) {
TEXT expanded_name2[MAXPATHLEN];
/* convert then name to its shorter version ie. convert
* longfilename.gdb to longfi~1.gdb */
* longfilename.fdb to longfi~1.gdb */
length =
(USHORT) GetShortPathName(expanded_name, expanded_name2,
MAXPATHLEN);
@ -821,8 +821,8 @@ int ISC_expand_filename(
if (_fullpath(expanded_name, temp, MAXPATHLEN) != NULL) {
TEXT expanded_name2[MAXPATHLEN];
/* convert then name to its shorter version ie. convert longfilename.gdb
* to longfi~1.gdb */
/* convert then name to its shorter version ie. convert longfilename.fdb
* to longfi~1.fdb */
file_length =
(USHORT) GetShortPathName(expanded_name, expanded_name2,
MAXPATHLEN);

View File

@ -65,7 +65,7 @@
*
*/
define database "ods10.gdb"
define database "ods10.fdb"
page_size 1024;

View File

@ -75,7 +75,7 @@
*
*/
define database "ods101.gdb"
define database "ods101.fdb"
page_size 1024;

View File

@ -38,7 +38,7 @@
*
*/
define database "v33d_ods72.gdb"
define database "v33d_ods72.fdb"
page_size 1024;

View File

@ -40,7 +40,7 @@
*
*/
define database "v4_ods8.gdb"
define database "v4_ods8.fdb"
page_size 1024;

View File

@ -27,7 +27,7 @@
* by either V3 or V4!
*
* This script can be used to re-create the development
* tool yachts.gdb, but must be edited as follows:
* tool yachts.fdb, but must be edited as follows:
* - Delete all DELETE's of global fields.
* - Delete all MODIFY's of global fields.
* - Delete all DROP/ADD (modify) pairs in MODIFY RELATION's
@ -63,7 +63,7 @@
*
*/
modify database "v33d_ods72.gdb";
modify database "v33d_ods72.fdb";
/* Global Field Definitions */

View File

@ -58,7 +58,7 @@
*
*/
define database "v4_ods81.gdb"
define database "v4_ods81.fdb"
page_size 1024;

View File

@ -58,7 +58,7 @@
*
*/
define database "ods_91.gdb"
define database "ods_91.fdb"
page_size 1024;

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
modify database 'yachts.gdb';
modify database 'yachts.fdb';
delete relation rdb$parameters;

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
modify database 'yachts.gdb';
modify database 'yachts.fdb';
define field RDB$PROCEDURE_BLR blob sub_type 2;
define field RDB$PROCEDURE_ID short;

View File

@ -101,7 +101,7 @@ III. OPERATION
client server, validate gives up with the message:
"Lock timeout during wait transaction
-- Object "database_filename.gdb" is in use"
-- Object "database_filename.fdb" is in use"
If other processes or servers are attached to the database, validate
waits for the exclusive lock on the database (i.e. waits for every

View File

@ -41,7 +41,7 @@
#include "../jrd/pio_proto.h"
#include "../jrd/thd_proto.h"
#define DEFAULT_FILE_NAME ".gdb"
#define DEFAULT_FILE_NAME ".fdb"
#define EVENT_FLAG 15
/***

View File

@ -22,11 +22,11 @@ SET SQL DIALECT 1;
/*
* Commented out the delete since it gives an error message, that puts off
* the builder. Deletion handled in shell script instead. MOD 04-Jan-01
CONNECT 'metadata.gdb';
CONNECT 'metadata.fdb';
DROP DATABASE;
*/
CREATE DATABASE 'metadata.gdb' PAGE_SIZE 1024;
CREATE DATABASE 'metadata.fdb' PAGE_SIZE 1024;
/* Domain definitions */
CREATE DOMAIN QLI$PROCEDURE_NAME AS CHAR(31);

View File

@ -42,7 +42,7 @@
#define MAX_LEVELS 4
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
static void ascii_str_to_upper(TEXT *);
static USHORT do_msgs(TEXT *, TEXT *, USHORT);
@ -105,7 +105,7 @@ int CLIB_ROUTINE main( int argc, char **argv)
SSHORT len;
BASED ON LOCALES.LOCALE this_locale;
strcpy(db_file, "msg.gdb");
strcpy(db_file, "msg.fdb");
strcpy(filename, FILENAME);
pathname = NULL;
locale = NULL;

View File

@ -34,7 +34,7 @@
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
#define FAC_SQL_POSITIVE 14
#define FAC_SQL_NEGATIVE 13

View File

@ -47,7 +47,7 @@
#include "../jrd/gds.h"
#include "../jrd/gds_proto.h"
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
#define INCLUDE_INDICATOR "indicator.incl"
@ -73,7 +73,7 @@ int CLIB_ROUTINE main( int argc, char *argv[])
ISC_TIMESTAMP date_jrd, date_msg, date_loc;
struct stat file_stat;
strcpy(db_file, "msg.gdb");
strcpy(db_file, "msg.fdb");
do_locales = FALSE;
end_args = argv + argc;

View File

@ -40,7 +40,7 @@
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
static void ascii_str_upper(UCHAR *);
static int get_sql_class(UCHAR *);

View File

@ -25,7 +25,7 @@
#include "../jrd/ib_stdio.h"
#include "../jrd/common.h"
DATABASE DB = "source/msgs/msg.gdb";
DATABASE DB = "source/msgs/msg.fdb";
IB_FILE *output;

View File

@ -20,7 +20,7 @@
#include "../jrd/gds.h"
#include "../jrd/common.h"
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
typedef struct {
SLONG value;
@ -581,4 +581,4 @@ void main( int argc, char **argv)
COMMIT;
FINISH;
exit(FINI_OK);
}
}

View File

@ -31,7 +31,7 @@
DATABASE DB = "msg.gdb";
DATABASE DB = "msg.fdb";
static void explicit_print(TEXT *);

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "msg.gdb"
define database "msg.fdb"
page_size 1024;

View File

@ -40,18 +40,18 @@
#define RIGHT_MARGIN 70
#ifdef VMS
#define TARGET "[syshlp]help.gdb"
#define TARGET "[syshlp]help.fdb"
#endif
#ifdef UNIX
#define TARGET "help/help.gdb"
#define TARGET "help/help.fdb"
#endif
#if (defined WIN_NT)
#define TARGET "help/help.gdb"
#define TARGET "help/help.fdb"
#endif
DATABASE HELP_DB = STATIC "help.gdb" RUNTIME target;
DATABASE HELP_DB = STATIC "help.fdb" RUNTIME target;
static int additional_topics(TEXT *, TEXT *, TEXT *);
static void print_more(USHORT, USHORT, TEXT **, USHORT *, TEXT *, USHORT);

View File

@ -16,11 +16,11 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "isc.gdb"
define database "isc.fdb"
page_size 1024;
/*
NOTE: This file sets up the the isc_tmp.gdb database that
NOTE: This file sets up the the isc_tmp.fdb database that
will ultimately get shipped as isc.gbak in the
interbase/bin directory. This file is part one of a
two step process. The reason for this is that gdef

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
define database "rebuild.gdb" ;
define database "rebuild.fdb" ;
define relation full_pages
number long,
type short,

View File

@ -31,7 +31,7 @@
#include "../utilities/rmet_proto.h"
#include "../jrd/gds_proto.h"
DATABASE DB = STATIC FILENAME "rebuild.gdb";
DATABASE DB = STATIC FILENAME "rebuild.fdb";
ULONG *RMET_tips(TEXT * db_in)

View File

@ -28,7 +28,7 @@
#include "../utilities/rstor_proto.h"
#include "../jrd/gds_proto.h"
DATABASE DB = STATIC FILENAME "rebuild.gdb";
DATABASE DB = STATIC FILENAME "rebuild.fdb";
static void store_headers(RBDB);

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
modify database "isc.gdb";
modify database "isc.fdb";
/*
NOTE: This file sets up the the platform specific

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
modify database "isc.gdb";
modify database "isc.fdb";
/*
NOTE: This file sets up the the platform specific

View File

@ -55,7 +55,7 @@ SSHORT SECURITY_exec_line(STATUS * isc_status,
* Functional description
* Process a command line for the security data base manager.
* This is used to add and delete users from the user information
* database (isc.gdb). It also displays information
* database (security.fdb). It also displays information
* about current users and allows modification of current
* users' parameters.
* Returns 0 on success, otherwise returns a Gsec message number

View File

@ -54,7 +54,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(new_dbname, argv[1]);
else
strcpy(new_dbname, "new.gdb");
strcpy(new_dbname, "new.fdb");
/*
* Construct a 'create database' statement.

View File

@ -62,7 +62,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
{

View File

@ -50,7 +50,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &db, 0, NULL))
{

View File

@ -80,7 +80,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
/* Zero the transaction handles. */

View File

@ -60,11 +60,11 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (argc > 2)
strcpy(empdb2, argv[2]);
else
strcpy(empdb2, "employe2.gdb");
strcpy(empdb2, "employe2.fdb");
/* Open database 1. */

View File

@ -56,7 +56,7 @@ char *where_str =
char Db_name[128];
EXEC SQL
SET DATABASE db1 = "employee.gdb" RUNTIME :Db_name;
SET DATABASE db1 = "employee.fdb" RUNTIME :Db_name;
@ -83,11 +83,11 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
if (argc > 2)
strcpy(empdb2, argv[2]);
else
strcpy(empdb2, "employe2.gdb");
strcpy(empdb2, "employe2.fdb");
EXEC SQL
@ -147,7 +147,7 @@ ARGLIST(char **argv)
*/
EXEC SQL
SET DATABASE db2 = "employe2.gdb";
SET DATABASE db2 = "employe2.fdb";
if (isc_attach_database(status, 0, empdb2, &db2, 0, NULL))
isc_print_status(status);

View File

@ -77,7 +77,7 @@ ARGLIST(char **argv)
strcpy(user_name, "guest");
strcpy(password, "guest");
strcpy(dbname, "employee.gdb");
strcpy(dbname, "employee.fdb");
if (argc > 1)
strcpy(dbname, argv[1]);

View File

@ -82,7 +82,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(dbname, argv[1]);
else
strcpy(dbname, "employee.gdb");
strcpy(dbname, "employee.fdb");
strcpy (ids[0], "new_order");

View File

@ -59,7 +59,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
{

View File

@ -57,7 +57,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
if (isc_attach_database(status, 0, Db_name, &DB, 0, NULL))
{

View File

@ -64,7 +64,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
isc_print_status(status);

View File

@ -63,7 +63,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
{

View File

@ -53,7 +53,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
{

View File

@ -81,7 +81,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))

View File

@ -61,7 +61,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
strcpy(sel_str, "SELECT proj_name, proj_desc, product FROM project WHERE \

View File

@ -82,7 +82,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
strcpy(upd_stmt, "UPDATE project SET proj_desc = ? WHERE proj_id = ?");

View File

@ -68,7 +68,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(empdb, argv[1]);
else
strcpy(empdb, "employee.gdb");
strcpy(empdb, "employee.fdb");
if (isc_attach_database(status, 0, empdb, &DB, 0, NULL))
{

View File

@ -29,7 +29,7 @@
void pr_error (char *operation);
char *new_dbname = "new.gdb";
char *new_dbname = "new.fdb";
char *create_tbl = "CREATE TABLE dbinfo (when_created DATE)";
char *insert_date = "INSERT INTO dbinfo VALUES ('NOW')";
@ -39,7 +39,7 @@ char *insert_date = "INSERT INTO dbinfo VALUES ('NOW')";
* Declare a database handle, which will be used by the new database.
*/
EXEC SQL
SET DATABASE db = COMPILETIME "employee.gdb";
SET DATABASE db = COMPILETIME "employee.fdb";
int main(ARG(int, argc), ARG(char **, argv))
ARGLIST(int argc)
@ -54,7 +54,7 @@ ARGLIST(char **argv)
*/
EXEC SQL
EXECUTE IMMEDIATE "CREATE DATABASE 'new.gdb'";
EXECUTE IMMEDIATE "CREATE DATABASE 'new.fdb'";
if (SQLCODE)
{

View File

@ -44,7 +44,7 @@ int Dept_ptr = 0;
char Db_name[128];
EXEC SQL
SET DATABASE empdb = "employee.gdb" RUNTIME :Db_name;
SET DATABASE empdb = "employee.fdb" RUNTIME :Db_name;
int main(ARG(int, argc), ARG(char **, argv))
@ -58,7 +58,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
EXEC SQL
WHENEVER SQLERROR GO TO MainError;

View File

@ -40,7 +40,7 @@ char *sel_str =
char Db_name[128];
EXEC SQL
SET DATABASE empdb = "employee.gdb" RUNTIME :Db_name;
SET DATABASE empdb = "employee.fdb" RUNTIME :Db_name;
int main(ARG(int, argc), ARG(char **, argv))
@ -58,7 +58,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
EXEC SQL
WHENEVER SQLERROR GO TO Error;

View File

@ -41,7 +41,7 @@ int Input_ptr = 0;
char Db_name[128];
EXEC SQL
SET DATABASE empdb = "employee.gdb" RUNTIME :Db_name;
SET DATABASE empdb = "employee.fdb" RUNTIME :Db_name;
char *upd_str =
"UPDATE department SET budget = ? * budget + budget WHERE dept_no = ?";
@ -59,7 +59,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
EXEC SQL

View File

@ -37,7 +37,7 @@ char *sel_str =
char Db_name[128];
EXEC SQL
SET DATABASE empdb = "employee.gdb" RUNTIME :Db_name;
SET DATABASE empdb = "employee.fdb" RUNTIME :Db_name;
int main(ARG(int, argc), ARG(char **, argv))
@ -50,7 +50,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy(Db_name, argv[1]);
else
strcpy(Db_name, "employee.gdb");
strcpy(Db_name, "employee.fdb");
EXEC SQL
WHENEVER SQLERROR GO TO Error;

View File

@ -21,7 +21,7 @@
* Contributor(s): ______________________________________.
*/
/*
$Id: dynfull.e,v 1.3 2003-02-28 13:20:00 brodsom Exp $
$Id: dynfull.e,v 1.4 2003-03-17 12:06:47 eku Exp $
*/
#include "example.h"
@ -61,7 +61,7 @@ EXEC SQL
SET SQL DIALECT 3;
EXEC SQL
SET DATABASE db = COMPILETIME "employee.gdb";
SET DATABASE db = COMPILETIME "employee.fdb";

View File

@ -17,8 +17,8 @@
* Contributor(s): ______________________________________.
*/
set sql dialect 1;
/* create database 'employee.gdb'; */
create database 'empbuild.gdb';
/* create database 'employee.fdb'; */
create database 'empbuild.fdb';
show version;
input empddl.sql;
/* quit; */

View File

@ -190,7 +190,7 @@ static char
/**** end of GPRE definitions ****/
/*EXEC SQL SET DATABASE DB = COMPILETIME "empbuild.gdb" RUNTIME :Db_name;*/
/*EXEC SQL SET DATABASE DB = COMPILETIME "empbuild.fdb" RUNTIME :Db_name;*/
int main (
int argc,
@ -210,7 +210,7 @@ TEXT cmd [140];
if (argc > 1)
strcpy (Db_name, argv[1]);
else
strcpy (Db_name, "employee.gdb");
strcpy (Db_name, "employee.fdb");
/* Create the database */

View File

@ -48,7 +48,7 @@ static FILE *Fp;
EXEC SQL INCLUDE SQLCA;
EXEC SQL SET DATABASE DB = COMPILETIME "empbuild.gdb" RUNTIME :Db_name;
EXEC SQL SET DATABASE DB = COMPILETIME "empbuild.fdb" RUNTIME :Db_name;
int main (
int argc,
@ -68,7 +68,7 @@ TEXT cmd [140];
if (argc > 1)
strcpy (Db_name, argv[1]);
else
strcpy (Db_name, "employee.gdb");
strcpy (Db_name, "employee.fdb");
/* Create the database */

View File

@ -16,7 +16,7 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
/*create database "employee.gdb";*/
/*create database "employee.fdb";*/
/**
** Create a sample employee database.
**

View File

@ -17,7 +17,7 @@
* Contributor(s): ______________________________________.
*/
set sql dialect 1;
create database "employe2.gdb";
create database "employe2.fdb";
/*
* Currency cross rates: convert one currency type into another.
*

View File

@ -28,7 +28,7 @@
/*
** Intlbld.e International version of Empbuild.e. Default database
** name was changed to 'intlemp.gdb'. Two of the files
** name was changed to 'intlemp.fdb'. Two of the files
** executed as ISQL input files were modified: intlddl.sql
** and intldml.sql are used by this program.
**
@ -48,7 +48,7 @@ static FILE *Fp;
EXEC SQL INCLUDE SQLCA;
EXEC SQL SET DATABASE DB = COMPILETIME "intlbuild.gdb" RUNTIME :Db_name;
EXEC SQL SET DATABASE DB = COMPILETIME "intlbuild.fdb" RUNTIME :Db_name;
int main (
int argc,
@ -68,7 +68,7 @@ TEXT cmd [140];
if (argc > 1)
strcpy (Db_name, argv[1]);
else
strcpy (Db_name, "intlemp.gdb");
strcpy (Db_name, "intlemp.fdb");
/* Create the database */

View File

@ -17,8 +17,8 @@
* Contributor(s): ______________________________________.
*/
set sql dialect 1;
/*create database 'intlemp.gdb' default character set iso8859_1; */
create database 'intlbuild.gdb' default character set iso8859_1;
/*create database 'intlemp.fdb' default character set iso8859_1; */
create database 'intlbuild.fdb' default character set iso8859_1;
show version;
input intlddl.sql;
quit;

View File

@ -16,13 +16,13 @@
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
/*CREATE DATABASE "intl_emp.gdb" DEFAULT CHARACTER SET ISO8859_1; */
/*CREATE DATABASE "intl_emp.fdb" DEFAULT CHARACTER SET ISO8859_1; */
/** 18-July-1994: Clare Taylor: Created this file, intlddl.sql, from the
** empddl.sql file. It has been modified as shown below
** to create an international version of the example database.
**
** Create a sample international employee database (intlemp.gdb).
** Create a sample international employee database (intlemp.fdb).
**
** This database keeps track of employees, departments, projects, and sales
** for a small company and uses ISO8859_1 for the DEFAULT CHARACTER SET.

View File

@ -24,7 +24,7 @@
* Based on the file empdml.sql.
*
* Changes for international example:
* SET NAMES must be done before a connect to the intlemp.gdb
* SET NAMES must be done before a connect to the intlemp.fdb
* or we see transliteration errors on insert. It is not enough
* to do this in the C program that executes this script.
* - Added additional countries
@ -39,7 +39,7 @@
*/
COMMIT;
SET NAMES ISO8859_1;
CONNECT intlemp.gdb;
CONNECT intlemp.fdb;
INSERT INTO country (country, currency) VALUES ('USA', 'Dollar');
INSERT INTO country (country, currency) VALUES ('UK', 'Pound');
@ -368,7 +368,7 @@ COMMIT;
* The salaries initialized here are not final. Employee salaries are
* updated below -- see salary_history.
*/
/* Original data for the US employee.gdb example plus additional rows
/* Original data for the US employee.fdb example plus additional rows
for Europe and Canada. CEO name was changed.
*/

View File

@ -32,7 +32,7 @@ int count_types (void);
int count_records (void);
long pr_error (void);
char *dbname = "employee.gdb";
char *dbname = "employee.fdb";
EXEC SQL INCLUDE SQLCA;
@ -45,17 +45,17 @@ int main (void)
*/
EXEC SQL
SET DATABASE db1 = "employee.gdb";
SET DATABASE db1 = "employee.fdb";
EXEC SQL
SET DATABASE db2 = "employe2.gdb";
SET DATABASE db2 = "employe2.fdb";
/*
* Open a single database.
*/
printf("\n1. Opening database employee.gdb.\n");
printf("\n1. Opening database employee.fdb.\n");
EXEC SQL
CONNECT db1;

View File

@ -40,7 +40,7 @@ long *t3;
char Db_name[128];
EXEC SQL
SET DATABASE empdb = COMPILETIME "employee.gdb" RUNTIME :Db_name;
SET DATABASE empdb = COMPILETIME "employee.fdb" RUNTIME :Db_name;
long cust_no;
long tot;
@ -59,7 +59,7 @@ ARGLIST(char **argv)
if (argc > 1)
strcpy (Db_name, argv[1]);
else
strcpy (Db_name, "employee.gdb");
strcpy (Db_name, "employee.fdb");
/* Connect to the database. */
EXEC SQL

View File

@ -44,7 +44,7 @@ EXEC SQL
BEGIN DECLARE SECTION;
EXEC SQL
SET DATABASE empdb = "employee.gdb";
SET DATABASE empdb = "employee.fdb";
long *t1;
long *t2;

View File

@ -31,7 +31,7 @@
EXEC SQL
BEGIN DECLARE SECTION;
EXEC SQL
SET DATABASE empdb = "employee.gdb";
SET DATABASE empdb = "employee.fdb";
EXEC SQL
END DECLARE SECTION;

View File

@ -5,7 +5,7 @@
*
* Description: This program does an asynchronous event wait
* on a trigger set up in the sales table of
* employee.gdb.
* employee.fdb.
* Somebody must add a new sales order to alert
* this program. That role can be accomplished
* by running the api16t example program
@ -43,7 +43,7 @@
*/
#define USER "guest"
#define PASSWORD "guest"
#define DATABASE "employee.gdb"
#define DATABASE "employee.fdb"
#define IDM_EXIT 1
#define WM_DB_EVENT WM_USER + 1
@ -105,7 +105,7 @@ int CHK_ERR(long *gds__status);
*
* Functional description
* Description: Setup the dpb with the username and password
* and attach to the database, employee.gdb.
* and attach to the database, employee.fdb.
* If the attach was successful, allocate an event
* control block and register interest in the
* event "new_order".