├── FBClient.Headers ├── include ├── firebird │ └── impl │ │ ├── msg │ │ ├── utl.h │ │ ├── sqlwarn.h │ │ └── all.h │ │ └── boost │ │ └── preprocessor │ │ ├── facilities │ │ └── empty.hpp │ │ ├── control │ │ ├── if.hpp │ │ ├── expr_if.hpp │ │ ├── expr_iif.hpp │ │ └── iif.hpp │ │ ├── cat.hpp │ │ ├── debug │ │ └── error.hpp │ │ └── seq │ │ └── seq.hpp └── ib_util.h ├── IscDbc ├── IscDbc.exp ├── resource.h ├── IscColumnsResultSet.cpp ├── IscDbc.def ├── Values.h ├── Properties.h ├── SQLException.h ├── Lock.h ├── SqlTime.h ├── Parameter.h ├── Engine.h ├── IscColumnKeyInfo.h ├── ParameterEvent.h ├── TimeStamp.h ├── Error.h ├── Mutex.h ├── IscPrimaryKeysResultSet.h ├── IscIndexInfoResultSet.h ├── IscTablesResultSet.h ├── IscProceduresResultSet.h ├── IscColumnPrivilegesResultSet.h ├── Lock.cpp ├── IscSqlType.h ├── SQLError.h ├── IscTablePrivilegesResultSet.h ├── MultibyteConvert.h ├── ParameterEvent.cpp ├── TypesResultSet.h ├── IscCrossReferenceResultSet.h ├── IscSpecialColumnsResultSet.h ├── IscProcedureColumnsResultSet.h ├── DateTime.h ├── SqlTime.cpp ├── IscMetaDataResultSet.h ├── Parameters.h ├── Error.cpp ├── Parameter.cpp ├── Types.h ├── Values.cpp ├── Blob.h ├── EnvShare.h └── Mutex.cpp ├── Test ├── Test.ncb ├── Test.cpp ├── Test.opt ├── NetfraRemote.lib ├── Test.dsw ├── NetfraDatabase.h ├── Constraint.h ├── Print.h ├── Hash.h ├── Gen.h ├── Odbc.h ├── RString.h ├── Index.h ├── StdAfx.h ├── Type.h ├── Gen.cpp ├── Database.h ├── Odbc.cpp ├── LinkedList.h └── JString.h ├── Builds ├── Bcc55.win │ ├── buildNT.bat │ ├── build98.bat │ └── build.bat ├── MinGW_Dev-Cpp.win │ ├── build.bat │ ├── readme.mingw │ ├── OdbcJdbcSetup.layout │ └── OdbcJdbc.layout ├── delDependMT.bat ├── Gcc.darwin │ └── lipo.sh ├── MsVc2022.win │ ├── OdbcFb.vcxproj.user │ └── OdbcFb.sln ├── MsSDK64.win │ └── BUILD.BAT ├── MsVc70.win │ ├── build.bat │ └── OdbcJdbc.sln ├── MsVc60.win │ ├── build.bat │ └── OdbcJdbc.dsw ├── Gcc.freeBSD │ └── readme.freeBSD ├── MsVc90.win │ ├── build_platform.bat │ ├── build.bat │ └── OdbcFb.sln ├── MsVc80.win │ ├── build_platform.bat │ ├── build.bat │ └── OdbcFb.sln └── makefile.environ ├── OdbcJdbc.rc ├── OdbcJdbcSetup ├── OdbcJdbcSetup.exp ├── res │ ├── resource.es │ └── resource.ru ├── OdbcJdbcSetup.def ├── OdbcJdbcSetupMinGw.def ├── CommonUtil.cpp ├── UsersTabRoles.h ├── OdbcJdbcSetup.cpp ├── UsersTabMemberShips.h ├── UserDialog.h ├── OdbcJdbcSetup.h └── ServiceTabBackup.h ├── OdbcStatement.h ├── Res ├── resource.es ├── resource.ru ├── resource.uk ├── resource.en └── resource.it ├── changes-v21.log ├── OdbcStatement.cpp ├── Install ├── ReleaseNotes_v1.2.html ├── HtmlHelp.ru │ ├── OdbcJdbc.hhc │ ├── OdbcJdbc.hhk │ ├── OdbcJdbc.hhp │ ├── html │ │ ├── About.htm │ │ ├── Array.htm │ │ ├── Events.htm │ │ ├── MsDTC.htm │ │ ├── Usage.htm │ │ ├── Clarion.htm │ │ ├── Cursors.htm │ │ ├── Services.htm │ │ ├── Copyright.htm │ │ ├── Environment.htm │ │ ├── Multithread.htm │ │ ├── Procedures.htm │ │ ├── FirebirdODBC.htm │ │ ├── Transactions.htm │ │ ├── CreateDatabase.htm │ │ ├── SecurityPassword.htm │ │ ├── ServicesExamples.htm │ │ ├── ConnectionExamples.htm │ │ ├── ConnectionAttributes.htm │ │ └── ConfigurationParameters.htm │ └── images │ │ ├── DSN.jpg │ │ ├── Backup.jpg │ │ ├── Repair.jpg │ │ ├── Users.jpg │ │ ├── AddUser.jpg │ │ ├── Restore.jpg │ │ ├── DeleteUser.jpg │ │ ├── ModifyUser.jpg │ │ ├── Statistics.jpg │ │ ├── modArrayField.jpg │ │ ├── odbcjdbc-logo.gif │ │ └── ruleModArrayField.jpg ├── HtmlHelp.ua │ ├── OdbcJdbc.hhc │ ├── OdbcJdbc.hhk │ ├── OdbcJdbc.hhp │ ├── html │ │ ├── About.htm │ │ ├── Array.htm │ │ ├── Events.htm │ │ ├── MsDTC.htm │ │ ├── Usage.htm │ │ ├── Clarion.htm │ │ ├── Cursors.htm │ │ ├── Services.htm │ │ ├── Copyright.htm │ │ ├── Environment.htm │ │ ├── Multithread.htm │ │ ├── Procedures.htm │ │ ├── FirebirdODBC.htm │ │ ├── Transactions.htm │ │ ├── CreateDatabase.htm │ │ ├── SecurityPassword.htm │ │ ├── ServicesExamples.htm │ │ ├── ConnectionExamples.htm │ │ ├── ConnectionAttributes.htm │ │ └── ConfigurationParameters.htm │ └── images │ │ ├── DSN.jpg │ │ ├── Backup.jpg │ │ ├── Repair.jpg │ │ ├── Users.jpg │ │ ├── AddUser.jpg │ │ ├── Restore.jpg │ │ ├── DeleteUser.jpg │ │ ├── ModifyUser.jpg │ │ ├── Statistics.jpg │ │ ├── modArrayField.jpg │ │ ├── odbcjdbc-logo.gif │ │ └── ruleModArrayField.jpg ├── HtmlHelp │ ├── html │ │ ├── Array.htm │ │ ├── ConnectionExamples.htm │ │ ├── ConfigurationParameters.htm │ │ ├── Environment.htm │ │ ├── SecurityPassword.htm │ │ ├── Usage.htm │ │ ├── FirebirdODBC.htm │ │ ├── About.htm │ │ └── Cursors.htm │ ├── images │ │ └── odbcjdbc-logo.gif │ └── OdbcJdbc.hhp ├── Linux │ ├── DriverTemplate.ini │ ├── InterBaseDSNTemplate.ini │ └── FirebirdDSNTemplate.ini ├── Win32 │ ├── firebird-logo1.bmp │ ├── firebird-logo2.bmp │ └── Readme.txt ├── HtmlHelp.es │ ├── html │ │ ├── About.htm │ │ ├── Array.htm │ │ ├── Usage.htm │ │ ├── Cursors.htm │ │ ├── Copyright.htm │ │ ├── Environment.htm │ │ ├── Multithread.htm │ │ ├── Procedures.htm │ │ ├── FirebirdODBC.htm │ │ ├── Transactions.htm │ │ ├── SecurityPassword.htm │ │ ├── ConnectionExamples.htm │ │ ├── ConnectionAttributes.htm │ │ └── ConfigurationParameters.htm │ ├── images │ │ └── odbcjdbc-logo.gif │ └── OdbcJdbc.hhp └── HtmlHelp.pt │ ├── images │ └── odbcjdbc-logo.gif │ ├── html │ ├── ConnectionExamples.htm │ ├── Copyright.htm │ ├── Environment.htm │ ├── SecurityPassword.htm │ ├── Usage.htm │ ├── FirebirdODBC.htm │ ├── About.htm │ └── Cursors.htm │ └── OdbcJdbc.hhp ├── .gitignore ├── WriteBuildNo.h ├── TestInstall └── TestInstall.cpp ├── .gitattributes ├── SafeEnvThread.cpp ├── resource.h ├── OdbcJdbc.dll.manifest ├── .github └── workflows │ ├── linux.yml │ └── rpi_arm64.yml ├── JdbcTest └── Test.cpp ├── OdbcJdbc.exp ├── ConnectDialog.h ├── SafeEnvThread.h ├── ResourceManagerSink.h ├── MbsAndWcs.cpp ├── makefile.in ├── OdbcError.h ├── ResourceManagerSink.cpp └── ChangeLog_v3.0 /FBClient.Headers/include: -------------------------------------------------------------------------------- 1 | . -------------------------------------------------------------------------------- /IscDbc/IscDbc.exp: -------------------------------------------------------------------------------- 1 | createConnection 2 | -------------------------------------------------------------------------------- /IscDbc/resource.h: -------------------------------------------------------------------------------- 1 | // Used by IscDbc.rc 2 | // 3 | -------------------------------------------------------------------------------- /Test/Test.ncb: -------------------------------------------------------------------------------- 1 | Microsoft C/C++ program database 2.00 2 | -------------------------------------------------------------------------------- /Builds/Bcc55.win/buildNT.bat: -------------------------------------------------------------------------------- 1 | @call build C:\Borland\BCC55 2 | -------------------------------------------------------------------------------- /Builds/Bcc55.win/build98.bat: -------------------------------------------------------------------------------- 1 | @call build C:\Borland\BCC55 WIN98 2 | -------------------------------------------------------------------------------- /Builds/MinGW_Dev-Cpp.win/build.bat: -------------------------------------------------------------------------------- 1 | D:\MinGW\bin\mingw32-make -f makefile.mingw 2 | 3 | -------------------------------------------------------------------------------- /OdbcJdbc.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/OdbcJdbc.rc -------------------------------------------------------------------------------- /OdbcJdbcSetup/OdbcJdbcSetup.exp: -------------------------------------------------------------------------------- 1 | ConfigDSN 2 | DllRegisterServer 3 | DllUnregisterServer 4 | -------------------------------------------------------------------------------- /OdbcStatement.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/OdbcStatement.h -------------------------------------------------------------------------------- /Res/resource.es: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Res/resource.es -------------------------------------------------------------------------------- /Res/resource.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Res/resource.ru -------------------------------------------------------------------------------- /Res/resource.uk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Res/resource.uk -------------------------------------------------------------------------------- /Test/Test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Test/Test.cpp -------------------------------------------------------------------------------- /Test/Test.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Test/Test.opt -------------------------------------------------------------------------------- /changes-v21.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/changes-v21.log -------------------------------------------------------------------------------- /OdbcStatement.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/OdbcStatement.cpp -------------------------------------------------------------------------------- /Test/NetfraRemote.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Test/NetfraRemote.lib -------------------------------------------------------------------------------- /Builds/delDependMT.bat: -------------------------------------------------------------------------------- 1 | @rm Release/obj/Main.o* Release/obj/MainUn*.o* Release/obj/SafeEn*.o* Release/obj/OdbcCo*.o* 2 | -------------------------------------------------------------------------------- /Install/ReleaseNotes_v1.2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/ReleaseNotes_v1.2.html -------------------------------------------------------------------------------- /IscDbc/IscColumnsResultSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/IscDbc/IscColumnsResultSet.cpp -------------------------------------------------------------------------------- /OdbcJdbcSetup/res/resource.es: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/OdbcJdbcSetup/res/resource.es -------------------------------------------------------------------------------- /OdbcJdbcSetup/res/resource.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/OdbcJdbcSetup/res/resource.ru -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/OdbcJdbc.hhc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/OdbcJdbc.hhc -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/OdbcJdbc.hhk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/OdbcJdbc.hhk -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/OdbcJdbc.hhp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/OdbcJdbc.hhp -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/OdbcJdbc.hhc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/OdbcJdbc.hhc -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/OdbcJdbc.hhk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/OdbcJdbc.hhk -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/OdbcJdbc.hhp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/OdbcJdbc.hhp -------------------------------------------------------------------------------- /Install/HtmlHelp/html/Array.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp/html/Array.htm -------------------------------------------------------------------------------- /Install/Linux/DriverTemplate.ini: -------------------------------------------------------------------------------- 1 | [Firebird] 2 | Description = Firebird ODBC driver 3 | Driver = /usr/lib/libOdbcFb.so -------------------------------------------------------------------------------- /Install/Win32/firebird-logo1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/Win32/firebird-logo1.bmp -------------------------------------------------------------------------------- /Install/Win32/firebird-logo2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/Win32/firebird-logo2.bmp -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/About.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/About.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Array.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Array.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Usage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Usage.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/About.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/About.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Array.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Array.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Events.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Events.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/MsDTC.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/MsDTC.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Usage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Usage.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/DSN.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/DSN.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/About.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/About.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Array.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Array.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Events.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Events.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/MsDTC.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/MsDTC.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Usage.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Usage.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/DSN.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/DSN.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Cursors.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Cursors.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Clarion.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Clarion.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Cursors.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Cursors.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Services.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Services.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/Backup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/Backup.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/Repair.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/Repair.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/Users.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/Users.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Clarion.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Clarion.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Cursors.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Cursors.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Services.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Services.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/Backup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/Backup.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/Repair.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/Repair.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/Users.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/Users.jpg -------------------------------------------------------------------------------- /Builds/Gcc.darwin/lipo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | lipo release_i386/libOdbcFB.dylib release_x86_64/libOdbcFB.dylib -output libOdbcFB.dylib -create 4 | -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Copyright.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Copyright.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Environment.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Environment.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Multithread.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Multithread.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Procedures.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Procedures.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Copyright.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Copyright.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Environment.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Environment.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Multithread.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Multithread.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Procedures.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Procedures.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/AddUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/AddUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/Restore.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/Restore.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Copyright.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Copyright.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Environment.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Environment.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Multithread.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Multithread.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Procedures.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Procedures.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/AddUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/AddUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/Restore.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/Restore.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/FirebirdODBC.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/FirebirdODBC.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/Transactions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/Transactions.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/FirebirdODBC.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/FirebirdODBC.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/Transactions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/Transactions.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/DeleteUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/DeleteUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/ModifyUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/ModifyUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/Statistics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/Statistics.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/FirebirdODBC.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/FirebirdODBC.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/Transactions.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/Transactions.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/DeleteUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/DeleteUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/ModifyUser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/ModifyUser.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/Statistics.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/Statistics.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp/images/odbcjdbc-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp/images/odbcjdbc-logo.gif -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/SecurityPassword.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/SecurityPassword.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/images/odbcjdbc-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/images/odbcjdbc-logo.gif -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/images/odbcjdbc-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.pt/images/odbcjdbc-logo.gif -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/CreateDatabase.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/CreateDatabase.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/SecurityPassword.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/SecurityPassword.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/ServicesExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/ServicesExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/modArrayField.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/modArrayField.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/odbcjdbc-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/odbcjdbc-logo.gif -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/CreateDatabase.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/CreateDatabase.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/SecurityPassword.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/SecurityPassword.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/ServicesExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/ServicesExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/modArrayField.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/modArrayField.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/odbcjdbc-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/odbcjdbc-logo.gif -------------------------------------------------------------------------------- /Install/HtmlHelp/html/ConnectionExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp/html/ConnectionExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/ConnectionExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/ConnectionExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/ConnectionExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.pt/html/ConnectionExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/ConnectionExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/ConnectionExamples.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/ConnectionExamples.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/ConnectionExamples.htm -------------------------------------------------------------------------------- /IscDbc/IscDbc.def: -------------------------------------------------------------------------------- 1 | LIBRARY "IscDbc" 2 | DESCRIPTION "IscDbc -- Jim's Jdbc C++ Binding for Interbase" 3 | 4 | EXPORTS 5 | createConnection 6 | createServices 7 | -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/ConnectionAttributes.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/ConnectionAttributes.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/ConnectionAttributes.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/ConnectionAttributes.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/images/ruleModArrayField.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/images/ruleModArrayField.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/ConnectionAttributes.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/ConnectionAttributes.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/images/ruleModArrayField.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/images/ruleModArrayField.jpg -------------------------------------------------------------------------------- /Install/HtmlHelp/html/ConfigurationParameters.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp/html/ConfigurationParameters.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.es/html/ConfigurationParameters.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.es/html/ConfigurationParameters.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ru/html/ConfigurationParameters.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ru/html/ConfigurationParameters.htm -------------------------------------------------------------------------------- /Install/HtmlHelp.ua/html/ConfigurationParameters.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FirebirdSQL/firebird-odbc-driver/HEAD/Install/HtmlHelp.ua/html/ConfigurationParameters.htm -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/msg/utl.h: -------------------------------------------------------------------------------- 1 | FB_IMPL_MSG(UTL, 1, utl_trusted_switch, -901, "00", "000", "Switches trusted_user and trusted_role are not supported from command line") 2 | -------------------------------------------------------------------------------- /Builds/MsVc2022.win/OdbcFb.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Builds/MinGW_Dev-Cpp.win/readme.mingw: -------------------------------------------------------------------------------- 1 | 2 | For build from Dev-C++ 3 | 4 | - create d:/Firebird/include and copy ibase.h iberror.h 5 | - run Dev-C++ 6 | - open OdbcJdbc.dev 7 | - build all -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Builds/*/Win32/ 2 | Builds/*/x64/ 3 | Builds/*/ARM/ 4 | Builds/*/ARM64/ 5 | Builds/*/.vs/ 6 | Install/Win32/install_image/ 7 | *.suo 8 | *.ncb 9 | *.user 10 | *.chm 11 | build_*.log 12 | OdbcJdbcSetup_*.iss 13 | .vs/* 14 | -------------------------------------------------------------------------------- /Builds/MsSDK64.win/BUILD.BAT: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Load D:\WINSDK\SetEnv.Bat /XP64 3 | @rem Create d:/Firebird/include and copy ibase.h iberror.h 4 | @rem Run this file 5 | @rem 6 | @set COMPDIR=%MSSdk% 7 | @"%MSSdk%\Bin\Win64"\nmake -f makefile.mssdk64 %1 8 | -------------------------------------------------------------------------------- /Builds/MsVc70.win/build.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Load VCVARS32.BAT from "D:\Program Files\Microsoft Visual Studio .NET\Vc7\bin" 3 | @rem Create d:/Firebird/include and copy ibase.h iberror.h 4 | @rem Run this file 5 | @rem 6 | @set COMPDIR=%MSVCDir% 7 | @"%MSVCDir%\Bin"\nmake -f makefile.msvc7 %1 8 | -------------------------------------------------------------------------------- /WriteBuildNo.h: -------------------------------------------------------------------------------- 1 | // number of entering of updatings in the current version 2 | // for the new version new readout 3 | // DIG number 4 | // Note - there must be two tabs between BUILDNUM_VERSION and 5 | // the actual number, otherwise the makefile for linux will not 6 | // pick up the value. 7 | #define BUILDNUM_VERSION 20 8 | -------------------------------------------------------------------------------- /Builds/MsVc60.win/build.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Load VCVARS32.BAT from "C:\Program Files\Microsoft Visual Studio\VC98\Bin" 3 | @rem Create d:/Firebird/include and copy ibase.h iberror.h 4 | @rem Run this file 5 | @rem 6 | @set COMPDIR=%MSVCDir% 7 | @set COMPDIRDEV=%MSDevDir% 8 | @"%MSVCDir%\Bin"\nmake -f makefile.msvc6 %1 9 | -------------------------------------------------------------------------------- /Builds/Bcc55.win/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem 4 | rem Examples Win98/Me 5 | rem build C:\Borland\BCC55 WIN98 6 | rem 7 | rem 8 | rem Examples Win XP/2000/2003/... 9 | rem build C:\Borland\BCC55 10 | rem 11 | 12 | 13 | %1\bin\make -f makefile.bcc55 COMPDIR=%1 VER_NT=%2 14 | 15 | @echo on 16 | -------------------------------------------------------------------------------- /Builds/Gcc.freeBSD/readme.freeBSD: -------------------------------------------------------------------------------- 1 | 2 | 1) Uses -pthread flag 3 | 4 | Problem: 5 | But my simple client working over OTL-wrapper (otl.sf.net) sigfaults on exit, 6 | and on linux works fine. 7 | 8 | Writen by Dmitriy Nikitinskiy 9 | All clients *must be* complied with -pthread flag: 10 | g++ -pthread -o client client.cpp 11 | 12 | 2) -------------------------------------------------------------------------------- /OdbcJdbcSetup/OdbcJdbcSetup.def: -------------------------------------------------------------------------------- 1 | ; OdbcJdbcSetup.def : Declares the module parameters for the DLL. 2 | 3 | LIBRARY "OdbcJdbcSetup" 4 | DESCRIPTION 'OdbcJdbcSetup Windows Dynamic Link Library' 5 | 6 | EXPORTS 7 | ; Explicit exports can go here 8 | ConfigDSN=ConfigDSN@16 9 | DllRegisterServer 10 | DllUnregisterServer 11 | DllInstall 12 | -------------------------------------------------------------------------------- /TestInstall/TestInstall.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include 3 | 4 | extern BOOL INSTAPI ConfigDSN(HWND hWnd, 5 | WORD fRequest, 6 | LPCSTR lpszDriver, 7 | LPCSTR lpszAttributes); 8 | 9 | int main (int argc, char **argv) 10 | { 11 | ConfigDSN (NULL, ODBC_CONFIG_DSN, "Firebird ODBC driver", ""); 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /Res/resource.en: -------------------------------------------------------------------------------- 1 | 0x0009 , 2 | { 3 | IDS_DLG_TITLE_CONNECT, // "Firebird ODBC Connect" 4 | "Firebird ODBC Connect" 5 | , 6 | IDS_BUTTON_OK, // "OK" 7 | "OK" 8 | , 9 | IDS_BUTTON_CANCEL, // "Cancel" 10 | "Cancel" 11 | , 12 | IDS_STATIC_ACCOUNT, // "Account" 13 | "Account" 14 | , 15 | IDS_STATIC_PASSWORD, // "Password" 16 | "Password" 17 | , 18 | IDS_STATIC_ROLE, // "Role" 19 | "Role" 20 | } 21 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/msg/sqlwarn.h: -------------------------------------------------------------------------------- 1 | FB_IMPL_MSG_NO_SYMBOL(SQLWARN, 100, "Row not found for fetch, update or delete, or the result of a query is an empty table.") 2 | FB_IMPL_MSG_NO_SYMBOL(SQLWARN, 101, "segment buffer length shorter than expected") 3 | FB_IMPL_MSG_NO_SYMBOL(SQLWARN, 301, "Datatype needs modification") 4 | FB_IMPL_MSG_NO_SYMBOL(SQLWARN, 612, "Duplicate column or domain name found.") 5 | -------------------------------------------------------------------------------- /Res/resource.it: -------------------------------------------------------------------------------- 1 | 0x0410 , 2 | { 3 | IDS_DLG_TITLE_CONNECT, // "Firebird ODBC Connect" 4 | "Connessione ODBC a Firebird" 5 | , 6 | IDS_BUTTON_OK, // "OK" 7 | "Conferma" 8 | , 9 | IDS_BUTTON_CANCEL, // "Cancel" 10 | "Annulla" 11 | , 12 | IDS_STATIC_ACCOUNT, // "Account" 13 | "Utente" 14 | , 15 | IDS_STATIC_PASSWORD, // "Password" 16 | "Parola d'ordine" 17 | , 18 | IDS_STATIC_ROLE, // "Role" 19 | "Ruolo" 20 | } 21 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.bat text eol=crlf 3 | *.sln text eol=crlf 4 | *.dsp text eol=crlf 5 | *.dsw text eol=crlf 6 | *.sh text 7 | 8 | *.lib binary 9 | *.dll binary 10 | *.bmp binary 11 | *.gif binary 12 | *.ico binary 13 | *.jpg binary 14 | *.jpeg binary 15 | *.png binary 16 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/OdbcJdbcSetupMinGw.def: -------------------------------------------------------------------------------- 1 | ; OdbcJdbcSetupMinGw.def : Declares the module parameters for the MinGw DLL. 2 | 3 | LIBRARY "OdbcJdbcSetup" 4 | DESCRIPTION 'OdbcJdbcSetup Windows Dynamic Link Library' 5 | 6 | EXPORTS 7 | ; Explicit exports can go here 8 | ConfigDSN=ConfigDSN@16 9 | ConfigDriver=ConfigDriver@28 10 | DllRegisterServer=DllRegisterServer@0 11 | DllUnregisterServer=DllUnregisterServer@0 12 | DllInstall=DllInstall@8 13 | -------------------------------------------------------------------------------- /Builds/MsVc90.win/build_platform.bat: -------------------------------------------------------------------------------- 1 | 2 | :BUILD 3 | ::======== 4 | @call setenvvar.bat %1 %2 5 | @title %BUILDTYPE% %1% 6 | @echo %BUILDTYPE% %1% 7 | @set > build_%1%.log 8 | 9 | @devenv %~dp0\OdbcFb.sln /%BUILDTYPE% "%BUILDCONFIG%|%FB_TARGET_PLATFORM%" /OUT build_%1%.log 2>&1 10 | 11 | :: Now make the packages 12 | pushd ..\..\Install\Win32 13 | @echo Now making packages 14 | call MakePackage.bat 15 | popd 16 | 17 | 18 | goto :EOF 19 | 20 | -------------------------------------------------------------------------------- /Install/Linux/InterBaseDSNTemplate.ini: -------------------------------------------------------------------------------- 1 | [TestInterBaseConnection] 2 | Description = Firebird ODBC driver 3 | Driver = Firebird 4 | Dbname = localhost:/opt/interbase/examples/employee.gdb 5 | Client = 6 | User = SYSDBA 7 | Password = masterkey 8 | Role = 9 | CharacterSet = NONE 10 | ReadOnly = No 11 | NoWait = No 12 | Dialect = 3 13 | QuotedIdentifier = Yes 14 | SensitiveIdentifier = No 15 | AutoQuotedIdentifier = No 16 | -------------------------------------------------------------------------------- /Install/Linux/FirebirdDSNTemplate.ini: -------------------------------------------------------------------------------- 1 | [TestFirebirdConnection] 2 | Description = Firebird ODBC driver 3 | Driver = Firebird 4 | Dbname = localhost:/opt/firebird/examples/employee.fdb 5 | Client = 6 | User = SYSDBA 7 | Password = masterkey 8 | Role = 9 | CharacterSet = NONE 10 | ReadOnly = No 11 | NoWait = No 12 | Dialect = 3 13 | QuotedIdentifier = Yes 14 | SensitiveIdentifier = No 15 | AutoQuotedIdentifier = No 16 | 17 | -------------------------------------------------------------------------------- /SafeEnvThread.cpp: -------------------------------------------------------------------------------- 1 | #ifdef _WINDOWS 2 | #include 3 | #endif 4 | 5 | #include "OdbcJdbc.h" 6 | #include "SafeEnvThread.h" 7 | 8 | #if(DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_ENV || DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_CONNECT) 9 | 10 | namespace OdbcJdbcLibrary { 11 | 12 | #ifdef _WINDOWS 13 | void * MutexEnvThread::mutexLockedLevelDll = NULL; 14 | #endif 15 | #ifdef _PTHREADS 16 | pthread_mutex_t MutexEnvThread::mutexLockedLevelDll; 17 | #endif 18 | 19 | MutexEnvThread iniMutexEnv; 20 | 21 | }; // end namespace OdbcJdbcLibrary 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /IscDbc/Values.h: -------------------------------------------------------------------------------- 1 | // Values.h: interface for the Values class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 6 | 7 | 8 | #if !defined(_VALUES_H_INCLUDED_) 9 | #define _VALUES_H_INCLUDED_ 10 | 11 | namespace IscDbcLibrary { 12 | 13 | class Value; 14 | 15 | class Values 16 | { 17 | public: 18 | void clear(); 19 | void alloc (int n); 20 | Values(); 21 | ~Values(); 22 | 23 | int count; 24 | Value *values; 25 | }; 26 | 27 | }; // end namespace IscDbcLibrary 28 | 29 | #endif // !defined(_VALUES_H_INCLUDED_) 30 | -------------------------------------------------------------------------------- /resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by ODbcJdbc.rc 4 | // 5 | #define IDC_STATIC -1 6 | 7 | #define IDD_CON_PROPERTIES 129 8 | #define IDC_USER 1001 9 | #define IDC_PASSWORD 1002 10 | #define IDC_ROLE 1003 11 | 12 | // 13 | // ID for translate strings 14 | // 15 | #define IDS_DLG_TITLE_CONNECT 0 16 | #define IDS_BUTTON_OK 1 17 | #define IDS_BUTTON_CANCEL 2 18 | #define IDS_STATIC_ACCOUNT 3 19 | #define IDS_STATIC_PASSWORD 4 20 | #define IDS_STATIC_ROLE 5 21 | -------------------------------------------------------------------------------- /Builds/MsVc80.win/build_platform.bat: -------------------------------------------------------------------------------- 1 | 2 | :BUILD 3 | ::======== 4 | @call setenvvar.bat %1 %2 5 | @title %BUILDTYPE% %1% 6 | @echo %BUILDTYPE% %1% 7 | @set > build_%1%.log 8 | if defined USE_NMAKE ( 9 | @echo using NMAKE 10 | @nmake /i /f %~dp0\makefile.%vs_ver% %1 all >> build_%1%.log 2>&1 11 | ) else ( 12 | @devenv %~dp0\OdbcFb.sln /%BUILDTYPE% "%BUILDCONFIG%|%FB_TARGET_PLATFORM%" /OUT build_%1%.log 2>&1 13 | ) 14 | echo. 15 | ) 16 | 17 | 18 | :: Now make the packages 19 | pushd ..\..\Install\Win32 20 | @echo Now making packages 21 | call MakePackage.bat 22 | popd 23 | 24 | 25 | goto :EOF 26 | 27 | -------------------------------------------------------------------------------- /IscDbc/Properties.h: -------------------------------------------------------------------------------- 1 | #ifndef _PROPERTIES_H_ 2 | #define _PROPERTIES_H_ 3 | 4 | namespace IscDbcLibrary { 5 | 6 | class Properties 7 | { 8 | public: 9 | virtual const char * findValue (const char *name, const char *defaultValue) = 0; 10 | virtual void putValue (const char *name, const char *value) = 0; 11 | virtual void putValue (const char *name, int nameLength, const char *value, int valueLength) = 0; 12 | virtual int getCount () = 0; 13 | virtual const char *getName (int index) = 0; 14 | virtual const char *getValue (int index) = 0; 15 | virtual void release() = 0; 16 | }; 17 | 18 | }; // end namespace IscDbcLibrary 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /Test/Test.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "Test"=.\Test.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/facilities/empty.hpp: -------------------------------------------------------------------------------- 1 | # /* Copyright (C) 2001 2 | # * Housemarque Oy 3 | # * http://www.housemarque.com 4 | # * 5 | # * Distributed under the Boost Software License, Version 1.0. (See 6 | # * accompanying file LICENSE_1_0.txt or copy at 7 | # * http://www.boost.org/LICENSE_1_0.txt) 8 | # */ 9 | # 10 | # /* Revised by Paul Mensonides (2002) */ 11 | # 12 | # /* See http://www.boost.org for most recent version. */ 13 | # 14 | # ifndef FB_BOOST_PREPROCESSOR_FACILITIES_EMPTY_HPP 15 | # define FB_BOOST_PREPROCESSOR_FACILITIES_EMPTY_HPP 16 | # 17 | # /* FB_BOOST_PP_EMPTY */ 18 | # 19 | # define FB_BOOST_PP_EMPTY() 20 | # 21 | # endif 22 | -------------------------------------------------------------------------------- /Builds/MsVc60.win/OdbcJdbc.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "OdbcJdbc"=.\OdbcJdbc.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /Install/HtmlHelp.es/OdbcJdbc.hhp: -------------------------------------------------------------------------------- 1 | [OPTIONS] 2 | Compatibility=1.1 or later 3 | Compiled file=FirebirdODBC.chm 4 | Contents file=odbcjdbc.hhc 5 | Default topic=html\FirebirdODBC.htm 6 | Display compile progress=No 7 | Index file=OdbcJdbc.hhk 8 | Language=0xc0a Spanish (International Sort) 9 | Title=Firebird ODBC 10 | 11 | 12 | [FILES] 13 | html\FirebirdODBC.htm 14 | html\ConfigurationParameters.htm 15 | html\ConnectionAttributes.htm 16 | html\ConnectionExamples.htm 17 | html\Usage.htm 18 | html\Environment.htm 19 | html\Multithread.htm 20 | html\SecurityPassword.htm 21 | html\Cursors.htm 22 | html\Procedures.htm 23 | html\Array.htm 24 | html\About.htm 25 | html\Copyright.htm 26 | html\Transactions.htm 27 | 28 | [INFOTYPES] 29 | 30 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/OdbcJdbc.hhp: -------------------------------------------------------------------------------- 1 | [OPTIONS] 2 | Compatibility=1.1 or later 3 | Compiled file=FirebirdODBC.chm 4 | Contents file=odbcjdbc.hhc 5 | Title=Firebird ODBC 6 | Default topic=html\FirebirdODBC.htm 7 | Display compile progress=No 8 | Index file=OdbcJdbc.hhk 9 | Language=0x809 English (United Kingdom) 10 | 11 | 12 | [FILES] 13 | html\FirebirdODBC.htm 14 | html\ConfigurationParameters.htm 15 | html\ConnectionAttributes.htm 16 | html\ConnectionExamples.htm 17 | html\Usage.htm 18 | html\Environment.htm 19 | html\Multithread.htm 20 | html\SecurityPassword.htm 21 | html\Cursors.htm 22 | html\Procedures.htm 23 | html\Array.htm 24 | html\About.htm 25 | html\Copyright.htm 26 | html\Transactions.htm 27 | 28 | [INFOTYPES] 29 | 30 | -------------------------------------------------------------------------------- /Builds/MinGW_Dev-Cpp.win/OdbcJdbcSetup.layout: -------------------------------------------------------------------------------- 1 | [Editors] 2 | Focused=-1 3 | Order= 4 | 5 | [Editor_0] 6 | Open=0 7 | Top=0 8 | CursorCol=11 9 | CursorRow=7 10 | TopLine=4 11 | LeftChar=1 12 | 13 | [Editor_1] 14 | Open=0 15 | Top=0 16 | CursorCol=5 17 | CursorRow=422 18 | TopLine=414 19 | LeftChar=1 20 | 21 | [Editor_2] 22 | Open=0 23 | Top=0 24 | 25 | [Editor_3] 26 | Open=0 27 | Top=0 28 | 29 | [Editor_4] 30 | Open=0 31 | Top=0 32 | 33 | [Editor_5] 34 | Open=0 35 | Top=0 36 | 37 | [Editor_6] 38 | Open=0 39 | Top=0 40 | 41 | [Editor_7] 42 | Open=0 43 | Top=0 44 | 45 | [Editor_8] 46 | Open=0 47 | Top=0 48 | 49 | [Editor_9] 50 | Open=0 51 | Top=0 52 | 53 | [Editor_10] 54 | Open=0 55 | Top=0 56 | CursorCol=1 57 | CursorRow=1 58 | TopLine=79 59 | LeftChar=1 60 | -------------------------------------------------------------------------------- /Install/HtmlHelp/OdbcJdbc.hhp: -------------------------------------------------------------------------------- 1 | [OPTIONS] 2 | Compatibility=1.1 or later 3 | Compiled file=FirebirdODBC.chm 4 | Contents file=odbcjdbc.hhc 5 | Default topic=html\FirebirdODBC.htm 6 | Display compile progress=No 7 | Full-text search=Yes 8 | Index file=OdbcJdbc.hhk 9 | Language=0x809 English (United Kingdom) 10 | Title=Firebird ODBC 11 | 12 | 13 | [FILES] 14 | html\FirebirdODBC.htm 15 | html\ConfigurationParameters.htm 16 | html\ConnectionAttributes.htm 17 | html\ConnectionExamples.htm 18 | html\Usage.htm 19 | html\Environment.htm 20 | html\Multithread.htm 21 | html\SecurityPassword.htm 22 | html\Cursors.htm 23 | html\Procedures.htm 24 | html\Array.htm 25 | html\About.htm 26 | html\Copyright.htm 27 | html\Transactions.htm 28 | html\Clarion.htm 29 | 30 | [INFOTYPES] 31 | 32 | -------------------------------------------------------------------------------- /OdbcJdbc.dll.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | Firebird ODBC 3.51 10 | 11 | 12 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /.github/workflows/linux.yml: -------------------------------------------------------------------------------- 1 | name: Linux 2 | 3 | on: 4 | push: 5 | branches: [ "master" ] 6 | 7 | permissions: 8 | contents: read 9 | 10 | jobs: 11 | build: 12 | 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | 18 | - name: Install UnixODBC package 19 | run: sudo apt-get install -y unixodbc unixodbc-dev 20 | 21 | - name: Go to build folder & make 22 | working-directory: ${{env.GITHUB_WORKSPACE}} 23 | run: | 24 | cd Builds/Gcc.lin 25 | cp makefile.linux makefile 26 | make 27 | 28 | - uses: actions/upload-artifact@v4 29 | with: 30 | name: linux_libs 31 | path: | 32 | ./Builds/Gcc.lin/Release_* 33 | !./Builds/Gcc.lin/Release_*/obj 34 | -------------------------------------------------------------------------------- /.github/workflows/rpi_arm64.yml: -------------------------------------------------------------------------------- 1 | name: RaspberryPI 2 | 3 | on: 4 | push: 5 | branches: [ "master" ] 6 | 7 | permissions: 8 | contents: read 9 | 10 | jobs: 11 | build: 12 | 13 | runs-on: ubuntu-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v4 17 | - uses: pguyot/arm-runner-action@v2 18 | with: 19 | base_image: raspios_lite_arm64:latest 20 | copy_repository_path: /opt/fb_odbc 21 | copy_artifact_path: | 22 | Builds/Gcc.lin/Release_* 23 | commands: | 24 | sudo apt-get install -y unixodbc unixodbc-dev 25 | cd /opt/fb_odbc/Builds/Gcc.lin 26 | cp makefile.linux makefile 27 | make 28 | 29 | - uses: actions/upload-artifact@v4 30 | with: 31 | name: linux_arm64_libs 32 | path: | 33 | Release_* 34 | !Release_*/obj 35 | 36 | -------------------------------------------------------------------------------- /Builds/MsVc90.win/build.bat: -------------------------------------------------------------------------------- 1 | :: 2 | :: This file is intended to do automated release builds. 3 | :: Automated debug builds will require you to do some hacking 4 | :: 5 | :: The only meaningful option this file understands is CLEAN 6 | :: If you pass that it will do a rebuild of the driver. 7 | :: 8 | :: After checking whether the binaries need to be (re)built 9 | :: it will package up the driver. 10 | :: 11 | :: If the host environment is 64-bit it will build and package 12 | :: the 32-bit driver too. 13 | :: 14 | :: WARNING: Only minimal error checking is done. The build/packaging 15 | :: process might not abort on error - be sure to check the logs and 16 | :: screen output afterwards. 17 | :: 18 | 19 | @echo off 20 | goto :MAIN & goto :EOF 21 | 22 | :MAIN 23 | ::=========== 24 | 25 | call build_platform.bat x86 %1 26 | call build_platform.bat AMD64 %1 27 | 28 | @title Build complete 29 | goto :EOF 30 | ::======= -------------------------------------------------------------------------------- /Builds/MsVc70.win/OdbcJdbc.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 7.00 2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdbcJdbc", "OdbcJdbc.vcproj", "{C6127398-654D-4196-B8C1-5BB32D75D7FD}" 3 | EndProject 4 | Global 5 | GlobalSection(SolutionConfiguration) = preSolution 6 | ConfigName.0 = Debug 7 | ConfigName.1 = Release 8 | EndGlobalSection 9 | GlobalSection(ProjectConfiguration) = postSolution 10 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug.ActiveCfg = Debug|Win32 11 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug.Build.0 = Debug|Win32 12 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release.ActiveCfg = Release|Win32 13 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release.Build.0 = Release|Win32 14 | EndGlobalSection 15 | GlobalSection(ExtensibilityGlobals) = postSolution 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityAddIns) = postSolution 18 | EndGlobalSection 19 | EndGlobal 20 | -------------------------------------------------------------------------------- /Test/NetfraDatabase.h: -------------------------------------------------------------------------------- 1 | // NetfraDatabase.h: interface for the NetfraDatabase class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_NETFRADATABASE_H__CBD41C52_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 6 | #define AFX_NETFRADATABASE_H__CBD41C52_EAEA_11D3_98D6_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | class Connection; 13 | 14 | class NetfraDatabase 15 | { 16 | public: 17 | void rollback(); 18 | void commit(); 19 | void createDatabase(); 20 | void findDatabase(); 21 | void executeUpdate (const char *sql); 22 | void attach(); 23 | void Serialize(CArchive& ar); 24 | NetfraDatabase(); 25 | virtual ~NetfraDatabase(); 26 | 27 | Connection *connection; 28 | CString connectString; 29 | CString password; 30 | CString schema; 31 | CString account; 32 | int savePassword; 33 | }; 34 | 35 | #endif // !defined(AFX_NETFRADATABASE_H__CBD41C52_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 36 | -------------------------------------------------------------------------------- /Test/Constraint.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Schema Converter 3 | * MODULE: Constraint.h 4 | * DESCRIPTION: Virtual Field class 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __CONSTRAINT_H 10 | #define __CONSTRAINT_H 11 | 12 | #include "Gen.h" 13 | 14 | class Table; 15 | class CString; 16 | class Syntax; 17 | class LinkedList; 18 | class Hash; 19 | 20 | enum ConstraintType { 21 | //primaryKey, 22 | foreignKey, 23 | checkClauseConstraint, 24 | uniqueIndex, 25 | index 26 | }; 27 | 28 | class Constraint : public Gen 29 | { 30 | public: 31 | 32 | Constraint (); 33 | //Constraint (Table*, Syntax*); 34 | //Constraint (Field*, Table*, Syntax*); 35 | ~Constraint (); 36 | 37 | void addOrdered (LinkedList *orderedTables); 38 | CString gen (boolean fieldLevel = FALSE); 39 | boolean isKey (Field*); 40 | 41 | ConstraintType type; 42 | CString checkClause; 43 | Table *foreignTable; 44 | LinkedList keys, foreignKeys; 45 | Table *table; 46 | CString text; 47 | int oracleValid; 48 | 49 | protected: 50 | 51 | }; 52 | 53 | #endif -------------------------------------------------------------------------------- /Test/Print.h: -------------------------------------------------------------------------------- 1 | // Print.h: interface for the Print class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_PRINT_H__34310C02_2C14_11D4_98E0_0000C01D2301__INCLUDED_) 6 | #define AFX_PRINT_H__34310C02_2C14_11D4_98E0_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | struct Column 13 | { 14 | char name [32]; 15 | SWORD sqlType; 16 | DWORD precision; 17 | SWORD scale; 18 | SWORD nullable; 19 | int length; // max (column name, precision) 20 | int headerLength; 21 | int offset; // offset in print line 22 | public: 23 | void reset(); 24 | }; 25 | 26 | class Print 27 | { 28 | public: 29 | void printAll(); 30 | void execute(); 31 | void skip(); 32 | void reset(); 33 | void getDescription(); 34 | void printLine(); 35 | void printHeaders(); 36 | Print(HSTMT statementHandle); 37 | virtual ~Print(); 38 | 39 | HSTMT statement; 40 | int numberColumns; 41 | Column *columns; 42 | char *buffer; 43 | }; 44 | 45 | #endif // !defined(AFX_PRINT_H__34310C02_2C14_11D4_98E0_0000C01D2301__INCLUDED_) 46 | -------------------------------------------------------------------------------- /Test/Hash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Schema Converter 3 | * MODULE: Hash.h 4 | * DESCRIPTION: Hash table stuff 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __HASH_H 10 | #define __HASH_H 11 | 12 | #ifndef TRUE 13 | #define TRUE 1 14 | #define FALSE 0 15 | #endif 16 | 17 | class Hash 18 | { 19 | public: 20 | bool isFirst (const char* string); 21 | Hash (int size); 22 | ~Hash (); 23 | 24 | void deleteAll(); 25 | void insert (const char *string, void *object); 26 | void *lookup (const char *string); 27 | 28 | void *initWalk (); 29 | int next (void *marker); 30 | const char *getString (void *marker); 31 | void *getObject (void *marker); 32 | void finiWalk (void *marker); 33 | 34 | protected: 35 | int hash (const char *string); 36 | 37 | struct HashEntry 38 | { 39 | ~HashEntry(); 40 | char *string; 41 | void *object; 42 | HashEntry *next; 43 | }; 44 | 45 | struct HashWalk 46 | { 47 | int slot; 48 | HashEntry *node; 49 | }; 50 | 51 | HashEntry **table; 52 | int tableSize; 53 | }; 54 | 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /Test/Gen.h: -------------------------------------------------------------------------------- 1 | // Gen.h: interface for the Gen class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_GEN_H__CBD41C49_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 6 | #define AFX_GEN_H__CBD41C49_EAEA_11D3_98D6_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | #include "RString.h" 13 | 14 | class Syntax; 15 | class Hash; 16 | class LinkedList; 17 | class Table; 18 | 19 | typedef enum { 20 | GenGeneric, 21 | GenOracle7, 22 | GenOracle8, 23 | GenSqlServer 24 | } GenType; 25 | 26 | struct GenTarget { 27 | char *name; 28 | GenType type; 29 | }; 30 | 31 | 32 | extern GenType genType; 33 | 34 | 35 | class Gen 36 | { 37 | public: 38 | virtual int hash (int tableSize); 39 | static int hash (const char *string, int tableSize); 40 | CString getIdentifier(); 41 | CString genFieldList (LinkedList *linkedList); 42 | virtual CString getName(); 43 | CString name; 44 | CString comment; 45 | Gen(); 46 | virtual ~Gen(); 47 | 48 | }; 49 | 50 | #endif // !defined(AFX_GEN_H__CBD41C49_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 51 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/control/if.hpp: -------------------------------------------------------------------------------- 1 | # /* Copyright (C) 2001 2 | # * Housemarque Oy 3 | # * http://www.housemarque.com 4 | # * 5 | # * Distributed under the Boost Software License, Version 1.0. (See 6 | # * accompanying file LICENSE_1_0.txt or copy at 7 | # * http://www.boost.org/LICENSE_1_0.txt) 8 | # */ 9 | # 10 | # /* Revised by Paul Mensonides (2002) */ 11 | # 12 | # /* See http://www.boost.org for most recent version. */ 13 | # 14 | # ifndef FB_BOOST_PREPROCESSOR_CONTROL_IF_HPP 15 | # define FB_BOOST_PREPROCESSOR_CONTROL_IF_HPP 16 | # 17 | # include 18 | # include 19 | # include 20 | # 21 | # /* FB_BOOST_PP_IF */ 22 | # 23 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_EDG() 24 | # define FB_BOOST_PP_IF(cond, t, f) FB_BOOST_PP_IIF(FB_BOOST_PP_BOOL(cond), t, f) 25 | # else 26 | # define FB_BOOST_PP_IF(cond, t, f) FB_BOOST_PP_IF_I(cond, t, f) 27 | # define FB_BOOST_PP_IF_I(cond, t, f) FB_BOOST_PP_IIF(FB_BOOST_PP_BOOL(cond), t, f) 28 | # endif 29 | # 30 | # endif 31 | -------------------------------------------------------------------------------- /Test/Odbc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: SQL Converter 3 | * MODULE: Odbc.h 4 | * DESCRIPTION: Help ODBC function declarations 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifdef _WIN32 10 | #include 11 | #else 12 | #include 13 | #include 14 | //#define OutputDebugString puts 15 | #endif 16 | 17 | #define GET_STRING(stmt,col,data,len) OdbcCheckCode (SQLGetData(stmt, col, SQL_C_CHAR, data, sizeof (data), &len), stmt, "SQLGetData") 18 | #define GET_LONG(stmt,col,data,len) OdbcCheckCode (SQLGetData(stmt, col, SQL_C_SLONG, &data, sizeof (data), &len), stmt, "SQLGetData") 19 | 20 | #define BIND_STRING(stmt,col,data,len) OdbcCheckCode (SQLBindCol(stmt, col, SQL_C_CHAR, data, sizeof (data), &len), stmt, "SQLBindData") 21 | #define BIND_LONG(stmt,col,data,len) OdbcCheckCode (SQLBindCol(stmt, col, SQL_C_SLONG, &data, sizeof (data), &len), stmt, "SQLBindData") 22 | 23 | int OdbcCheckCode (int retcode, SQLHANDLE statement, const char *string, int handleType=SQL_HANDLE_STMT); 24 | 25 | /*** 26 | void OdbcExecute (CDatabase*, const char* sql); 27 | int OdbcTableEmpty (CDatabase*, const char* tableName); 28 | ***/ 29 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/cat.hpp: -------------------------------------------------------------------------------- 1 | # /* Copyright (C) 2001 2 | # * Housemarque Oy 3 | # * http://www.housemarque.com 4 | # * 5 | # * Distributed under the Boost Software License, Version 1.0. (See 6 | # * accompanying file LICENSE_1_0.txt or copy at 7 | # * http://www.boost.org/LICENSE_1_0.txt) 8 | # */ 9 | # 10 | # /* Revised by Paul Mensonides (2002) */ 11 | # 12 | # /* See http://www.boost.org for most recent version. */ 13 | # 14 | # ifndef FB_BOOST_PREPROCESSOR_CAT_HPP 15 | # define FB_BOOST_PREPROCESSOR_CAT_HPP 16 | # 17 | # include 18 | # 19 | # /* FB_BOOST_PP_CAT */ 20 | # 21 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MWCC() 22 | # define FB_BOOST_PP_CAT(a, b) FB_BOOST_PP_CAT_I(a, b) 23 | # else 24 | # define FB_BOOST_PP_CAT(a, b) FB_BOOST_PP_CAT_OO((a, b)) 25 | # define FB_BOOST_PP_CAT_OO(par) FB_BOOST_PP_CAT_I ## par 26 | # endif 27 | # 28 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MSVC() 29 | # define FB_BOOST_PP_CAT_I(a, b) a ## b 30 | # else 31 | # define FB_BOOST_PP_CAT_I(a, b) FB_BOOST_PP_CAT_II(a ## b) 32 | # define FB_BOOST_PP_CAT_II(res) res 33 | # endif 34 | # 35 | # endif 36 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/control/expr_if.hpp: -------------------------------------------------------------------------------- 1 | # /* Copyright (C) 2001 2 | # * Housemarque Oy 3 | # * http://www.housemarque.com 4 | # * 5 | # * Distributed under the Boost Software License, Version 1.0. (See 6 | # * accompanying file LICENSE_1_0.txt or copy at 7 | # * http://www.boost.org/LICENSE_1_0.txt) 8 | # */ 9 | # 10 | # /* Revised by Paul Mensonides (2002) */ 11 | # 12 | # /* See http://www.boost.org for most recent version. */ 13 | # 14 | # ifndef FB_BOOST_PREPROCESSOR_CONTROL_EXPR_IF_HPP 15 | # define FB_BOOST_PREPROCESSOR_CONTROL_EXPR_IF_HPP 16 | # 17 | # include 18 | # include 19 | # include 20 | # 21 | # /* FB_BOOST_PP_EXPR_IF */ 22 | # 23 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_EDG() 24 | # define FB_BOOST_PP_EXPR_IF(cond, expr) FB_BOOST_PP_EXPR_IIF(FB_BOOST_PP_BOOL(cond), expr) 25 | # else 26 | # define FB_BOOST_PP_EXPR_IF(cond, expr) FB_BOOST_PP_EXPR_IF_I(cond, expr) 27 | # define FB_BOOST_PP_EXPR_IF_I(cond, expr) FB_BOOST_PP_EXPR_IIF(FB_BOOST_PP_BOOL(cond), expr) 28 | # endif 29 | # 30 | # endif 31 | -------------------------------------------------------------------------------- /Test/RString.h: -------------------------------------------------------------------------------- 1 | // RString.h: interface for the CRString class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_RSTRING_H__11F793EC_AF83_11D1_AB1B_0000C01D2301__INCLUDED_) 6 | #define AFX_RSTRING_H__11F793EC_AF83_11D1_AB1B_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | class CRString : public CString 13 | { 14 | class CRepeat 15 | { 16 | public: 17 | void append (const char *what, const char *separator); 18 | CRepeat(CRepeat *prior, const char *pattern, const char *what); 19 | CString pattern; 20 | CString string; 21 | CRepeat *next; 22 | }; 23 | 24 | public: 25 | void append (const char *pattern, const char *string, const char *separator = ""); 26 | const char* apply(); 27 | CString getCRstring(); 28 | CString getCRLFstring(); 29 | void replace (const char* pattern, int value); 30 | CRString (CString string); 31 | void replace (const char* pattern, const char* text); 32 | CRString (const char*); 33 | CRString(); 34 | virtual ~CRString(); 35 | CRepeat *repeat; 36 | }; 37 | 38 | #endif // !defined(AFX_RSTRING_H__11F793EC_AF83_11D1_AB1B_0000C01D2301__INCLUDED_) 39 | -------------------------------------------------------------------------------- /FBClient.Headers/ib_util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: UDF and Blob filter Utilities library 3 | * MODULE: ib_util.h 4 | * DESCRIPTION: Prototype header file for ib_util.c 5 | * 6 | * The contents of this file are subject to the Interbase Public 7 | * License Version 1.0 (the "License"); you may not use this file 8 | * except in compliance with the License. You may obtain a copy 9 | * of the License at http://www.Inprise.com/IPL.html 10 | * 11 | * Software distributed under the License is distributed on an 12 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express 13 | * or implied. See the License for the specific language governing 14 | * rights and limitations under the License. 15 | * 16 | * The Original Code was created by Inprise Corporation 17 | * and its predecessors. Portions created by Inprise Corporation are 18 | * Copyright (C) Inprise Corporation. 19 | * 20 | * All Rights Reserved. 21 | * Contributor(s): ______________________________________. 22 | */ 23 | 24 | #ifndef _IB_UTIL_H 25 | #define _IB_UTIL_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | extern void *ib_util_malloc(long); 32 | 33 | #ifdef __cplusplus 34 | } /* extern "C" */ 35 | #endif 36 | 37 | #endif /* _IB_UTIL_H */ 38 | -------------------------------------------------------------------------------- /Builds/MsVc80.win/build.bat: -------------------------------------------------------------------------------- 1 | :: 2 | :: This file is intended to do automated release builds. 3 | :: Automated debug builds will require you to do some hacking 4 | :: 5 | :: The only meaningful option this file understands is CLEAN 6 | :: If you pass that it will do a rebuild of the driver. 7 | :: 8 | :: After checking whether the binaries need to be (re)built 9 | :: it will package up the driver. 10 | :: 11 | :: If the host environment is 64-bit it will build and package 12 | :: the 32-bit driver too. 13 | :: 14 | :: WARNING: Only minimal error checking is done. The build/packaging 15 | :: process might not abort on error - be sure to check the logs and 16 | :: screen output afterwards. 17 | :: 18 | 19 | @echo off 20 | goto :MAIN & goto :EOF 21 | 22 | :MAIN 23 | ::=========== 24 | 25 | if "%PROCESSOR_ARCHITECTURE%" == "AMD64" ( 26 | @set PLATFORM=x64 27 | ) else ( 28 | if "%PROCESSOR_ARCHITEW6432%" == "AMD64" ( 29 | @set PLATFORM=x64 30 | ) else ( 31 | @set PLATFORM=win32 32 | ) 33 | ) 34 | 35 | if "%PLATFORM%" == "x64" ( 36 | call build_platform.bat x86 %1 37 | call build_platform.bat AMD64 %1 38 | ) else ( 39 | call build_platform.bat x86 %1 40 | ) 41 | 42 | @title Build complete 43 | goto :EOF 44 | ::======= -------------------------------------------------------------------------------- /Builds/MsVc90.win/OdbcFb.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 10.00 2 | # Visual Studio 2008 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdbcFb", "OdbcFb.vcproj", "{C6127398-654D-4196-B8C1-5BB32D75D7FD}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Debug|x64 = Debug|x64 9 | Release|Win32 = Release|Win32 10 | Release|x64 = Release|x64 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.ActiveCfg = Debug|Win32 14 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.Build.0 = Debug|Win32 15 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.ActiveCfg = Debug|x64 16 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.Build.0 = Debug|x64 17 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.ActiveCfg = Release|Win32 18 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.Build.0 = Release|Win32 19 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.ActiveCfg = Release|x64 20 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.Build.0 = Release|x64 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /IscDbc/SQLException.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Virtual Data Manager 3 | * MODULE: SQLException.h 4 | * DESCRIPTION: SQL Exception object 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __SQLEXCEPTION_H 10 | #define __SQLEXCEPTION_H 11 | 12 | #include 13 | 14 | #ifdef _WIN32xxx 15 | #define DllExport __declspec( dllexport ) 16 | #else 17 | #define DllExport 18 | #endif 19 | 20 | namespace IscDbcLibrary { 21 | 22 | enum SqlCode { 23 | SYNTAX_ERROR = -1, 24 | FEATURE_NOT_YET_IMPLEMENTED = -2, 25 | BUG_CHECK = -3, 26 | COMPILE_ERROR = -4, 27 | RUNTIME_ERROR = -5, 28 | OCS_ERROR = -6, 29 | NETWORK_ERROR = -7, 30 | CONVERSION_ERROR = -8, 31 | TRUNCATION_ERROR = -9, 32 | CONNECTION_ERROR = -10, 33 | DDL_ERROR = -11, 34 | APPLICATION_ERROR = -12, 35 | SECURITY_ERROR = -13, 36 | UNSUPPORTED_DATATYPE = -14, 37 | NO_RECORDS_FOR_FETCH = -508 // No current record for fetch operation 335544348L 38 | }; 39 | 40 | class DllExport SQLException : public std::exception 41 | { 42 | public: 43 | //virtual void addRef() = 0; 44 | //virtual int release() = 0; 45 | virtual int getFbcode () = 0; 46 | virtual int getSqlcode () = 0; 47 | virtual const char *getText() = 0; 48 | virtual const char *getTrace() = 0; 49 | }; 50 | 51 | }; // end namespace IscDbcLibrary 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /Test/Index.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Virtual Data Manager 3 | * MODULE: Index.h 4 | * DESCRIPTION: Index related definitions 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __INDEX_H 10 | #define __INDEX_H 11 | 12 | #include "Gen.h" 13 | #include "LinkedList.h" 14 | 15 | class Table; 16 | class Table; 17 | class Field; 18 | class CDatabase; 19 | class Hash; 20 | 21 | typedef enum { 22 | PRIMARY_KEY, 23 | UNIQUE_INDEX, 24 | FOREIGN_KEY, 25 | SECONDARY_INDEX, 26 | } IndexType; 27 | 28 | class Index : public Gen { 29 | public: 30 | CString genSql(); 31 | bool isMember (Field *field); 32 | virtual LinkedList* getFields(); 33 | 34 | Index (); 35 | Index (Table *table, const char *name, IndexType type); 36 | //Index (Syntax *syntax); 37 | ~Index(); 38 | 39 | void addField (Field*); 40 | boolean changed (Index *index); 41 | void drop (CDatabase*); 42 | static void fini(); 43 | CString gen(); 44 | boolean isDuplicate (Index*); 45 | boolean isKey (Field*); 46 | void postLoad(); 47 | 48 | IndexType type; 49 | Table *table; 50 | 51 | LinkedList fields, foreignKeys; 52 | Field *keyField; 53 | Index *primaryKey; 54 | int fieldCount; 55 | 56 | Index *collision; 57 | Index *duplicate; 58 | 59 | static Hash indexes; 60 | }; 61 | 62 | #endif 63 | 64 | -------------------------------------------------------------------------------- /Builds/MsVc80.win/OdbcFb.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Firebird OdbcFb", "OdbcFb.vcproj", "{C6127398-654D-4196-B8C1-5BB32D75D7FD}" 4 | EndProject 5 | Global 6 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 7 | Debug|Win32 = Debug|Win32 8 | Debug|x64 = Debug|x64 9 | Release|Win32 = Release|Win32 10 | Release|x64 = Release|x64 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.ActiveCfg = Debug|Win32 14 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.Build.0 = Debug|Win32 15 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.ActiveCfg = Debug|x64 16 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.Build.0 = Debug|x64 17 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.ActiveCfg = Release|Win32 18 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.Build.0 = Release|Win32 19 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.ActiveCfg = Release|x64 20 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.Build.0 = Release|x64 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Test/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__CBD41C39_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 7 | #define AFX_STDAFX_H__CBD41C39_EAEA_11D3_98D6_0000C01D2301__INCLUDED_ 8 | 9 | #if _MSC_VER >= 1000 10 | #pragma once 11 | #endif // _MSC_VER >= 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include 18 | #include // MFC OLE automation classes 19 | 20 | #ifndef _AFX_NO_DB_SUPPORT 21 | #include // MFC ODBC database classes 22 | #endif // _AFX_NO_DB_SUPPORT 23 | 24 | #ifndef _AFX_NO_DAO_SUPPORT 25 | #include // MFC DAO database classes 26 | #endif // _AFX_NO_DAO_SUPPORT 27 | 28 | #ifndef _AFX_NO_AFXCMN_SUPPORT 29 | #include // MFC support for Windows Common Controls 30 | #endif // _AFX_NO_AFXCMN_SUPPORT 31 | 32 | 33 | //{{AFX_INSERT_LOCATION}} 34 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 35 | 36 | #endif // !defined(AFX_STDAFX_H__CBD41C39_EAEA_11D3_98D6_0000C01D2301__INCLUDED_) 37 | -------------------------------------------------------------------------------- /JdbcTest/Test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | main (int argc, char **argv) 5 | { 6 | Connection *connection = NULL; 7 | 8 | try 9 | { 10 | connection = createConnection(); 11 | Properties *properties = connection->allocProperties(); 12 | properties->putValue ("user", "sysdba"); 13 | properties->putValue ("password", "masterkey"); 14 | connection->openDatabase ("employee.gdb", properties); 15 | properties->release(); 16 | 17 | 18 | PreparedStatement *statement = connection->prepareStatement ( 19 | "select first_name, last_name, emp_no from employee where first_name = ?"); 20 | statement->setString (1, "Robert"); 21 | 22 | ResultSet *resultSet = statement->executeQuery(); 23 | 24 | while (resultSet->next()) 25 | { 26 | const char *firstName = resultSet->getString ("first_name"); 27 | const char *lastName = resultSet->getString (2); // last name 28 | short empNo = resultSet->getShort (3); // emp-no 29 | printf ("%.10s %.15s %d\n", firstName, lastName, empNo); 30 | } 31 | 32 | resultSet->release(); 33 | statement->release(); 34 | connection->release(); 35 | } 36 | catch (SQLException& exception) 37 | { 38 | printf ("Query failed: %s\n", exception.getText()); 39 | if (connection) 40 | connection->release(); 41 | return 1; 42 | } 43 | 44 | return 0; 45 | } 46 | -------------------------------------------------------------------------------- /IscDbc/Lock.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Lock.h: interface for the Lock class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_LOCK_H_INCLUDED_) 26 | #define _LOCK_H_INCLUDED_ 27 | 28 | #include "Mutex.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | using namespace classMutex; 33 | 34 | class Lock 35 | { 36 | public: 37 | void release(); 38 | void lock(); 39 | Lock(Mutex *mutex); 40 | ~Lock(); 41 | 42 | Mutex *mutex; 43 | bool locked; 44 | }; 45 | 46 | }; // end namespace IscDbcLibrary 47 | 48 | #endif // !defined(_LOCK_H_INCLUDED_) 49 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/msg/all.h: -------------------------------------------------------------------------------- 1 | /* 2 | * The contents of this file are subject to the Initial 3 | * Developer's Public License Version 1.0 (the "License"); 4 | * you may not use this file except in compliance with the 5 | * License. You may obtain a copy of the License at 6 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 7 | * 8 | * Software distributed under the License is distributed AS IS, 9 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing rights 11 | * and limitations under the License. 12 | * 13 | * The Original Code was created by Adriano dos Santos Fernandes 14 | * for the Firebird Open Source RDBMS project. 15 | * 16 | * Copyright (c) 2021 Adriano dos Santos Fernandes 17 | * and all contributors signed below. 18 | * 19 | * All Rights Reserved. 20 | * Contributor(s): ______________________________________. 21 | */ 22 | 23 | // Include headers by their facility order (see firebird/impl/msg_helper.h) 24 | #include "jrd.h" 25 | #include "gfix.h" 26 | #include "dsql.h" 27 | #include "dyn.h" 28 | #include "gbak.h" 29 | #include "sqlerr.h" 30 | #include "sqlwarn.h" 31 | #include "jrd_bugchk.h" 32 | #include "isql.h" 33 | #include "gsec.h" 34 | #include "gstat.h" 35 | #include "fbsvcmgr.h" 36 | #include "utl.h" 37 | #include "nbackup.h" 38 | #include "fbtracemgr.h" 39 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/Copyright.htm: -------------------------------------------------------------------------------- 1 | 19 | 20 | 21 | 22 | 23 | Copyright Firebird ODBC 24 | 25 | 26 | 27 | 28 |

Copyright Firebird ODBC

29 | 30 | 31 |

http://www.firebirdsql.com/en/initial-developer-s-public-license-version-1-0/.

32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /IscDbc/SqlTime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Ann W. Harrison for IBPhoenix. 16 | * 17 | * Copyright (c) Ann W. Harrison 18 | * All Rights Reserved. 19 | */ 20 | 21 | // SqlTime.h: interface for the SqlTime class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_TIME_H_INCLUDED_) 26 | #define _TIME_H_INCLUDED_ 27 | 28 | namespace IscDbcLibrary { 29 | 30 | class SqlTime 31 | { 32 | public: 33 | static SqlTime convert (const char *string, int length); 34 | int getString (int length, char *buffer); 35 | int getString (const char * format, int length, char *buffer); 36 | 37 | unsigned int timeValue; 38 | 39 | }; 40 | 41 | }; // end namespace IscDbcLibrary 42 | 43 | #endif // !defined(_TIME_H_INCLUDED_) 44 | -------------------------------------------------------------------------------- /IscDbc/Parameter.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Parameter.h: interface for the Parameter class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | 26 | #if !defined(_PARAMETER_H_) 27 | #define _PARAMETER_H_ 28 | 29 | namespace IscDbcLibrary { 30 | 31 | class Parameter 32 | { 33 | public: 34 | Parameter (Parameter *nxt, const char *nam, int namLen, const char *val, int valLen); 35 | ~Parameter(); 36 | 37 | int nameLength; 38 | char *name; 39 | int valueLength; 40 | char *value; 41 | Parameter *next; 42 | }; 43 | 44 | }; // end namespace IscDbcLibrary 45 | 46 | #endif // !defined(_PARAMETER_H_) 47 | -------------------------------------------------------------------------------- /IscDbc/Engine.h: -------------------------------------------------------------------------------- 1 | 2 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 3 | 4 | 5 | #ifndef __ENGINE_H 6 | #define __ENGINE_H 7 | 8 | /*** 9 | #ifdef ENGINE 10 | typedef unsigned short WCHAR; 11 | #else 12 | #include 13 | typedef wchar_t WCHAR; 14 | #endif 15 | ***/ 16 | 17 | #ifdef _LEAKS 18 | #include 19 | //static char THIS_FILE[]=__FILE__; 20 | #define new DEBUG_NEW 21 | #undef THIS_FILE 22 | #endif 23 | 24 | 25 | #ifndef NULL 26 | #define NULL 0 27 | #endif 28 | 29 | #define OFFSET(type,fld) (int)&(((type)0)->fld) 30 | #define MAX(a,b) ((a > b) ? a : b) 31 | #define MIN(a,b) ((a < b) ? a : b) 32 | #define ABS(n) (((n) >= 0) ? (n) : -(n)) 33 | #define MASK(n) (1 << (n)) 34 | #define ISLOWER(c) (c >= 'a' && c <= 'z') 35 | #define ISUPPER(c) (c >= 'A' && c <= 'Z') 36 | #define ISDIGIT(c) (c >= '0' && c <= '9') 37 | #define UPPER(c) ((ISLOWER (c)) ? c - 'a' + 'A' : c) 38 | #define ROUNDUP(n,b) ((n + b - 1) & ~(b - 1)) 39 | #define SQLEXCEPTION SQLError 40 | #ifdef _WIN32 41 | 42 | #define strcasecmp stricmp 43 | #define strncasecmp strnicmp 44 | 45 | #else 46 | 47 | #define __int64 long long 48 | #define _stdcall 49 | #endif 50 | 51 | typedef unsigned char UCHAR; 52 | typedef unsigned long ULONG; 53 | 54 | enum LockType { 55 | None, 56 | Exclusive, 57 | Shared 58 | }; 59 | 60 | #ifdef ENGINE 61 | #include "Error.h" 62 | #endif 63 | 64 | #include "JString.h" 65 | 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /IscDbc/IscColumnKeyInfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2006 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscColumnKeyInfo.h: interface for the IscColumnKeyInfo class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_IscColumnKeyInfo_h_) 26 | #define _IscColumnKeyInfo_h_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscColumnKeyInfo : public IscMetaDataResultSet 33 | { 34 | public: 35 | virtual bool getColumnKeyInfo( const char *tableName, const char *columnName ); 36 | IscColumnKeyInfo( IscDatabaseMetaData *metaData ); 37 | }; 38 | 39 | }; // end namespace IscDbcLibrary 40 | 41 | #endif // !defined(_IscColumnKeyInfo_h_) 42 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/control/expr_iif.hpp: -------------------------------------------------------------------------------- 1 | # /* ************************************************************************** 2 | # * * 3 | # * (C) Copyright Paul Mensonides 2002. 4 | # * Distributed under the Boost Software License, Version 1.0. (See 5 | # * accompanying file LICENSE_1_0.txt or copy at 6 | # * http://www.boost.org/LICENSE_1_0.txt) 7 | # * * 8 | # ************************************************************************** */ 9 | # 10 | # /* See http://www.boost.org for most recent version. */ 11 | # 12 | # ifndef FB_BOOST_PREPROCESSOR_CONTROL_EXPR_IIF_HPP 13 | # define FB_BOOST_PREPROCESSOR_CONTROL_EXPR_IIF_HPP 14 | # 15 | # include 16 | # 17 | # /* FB_BOOST_PP_EXPR_IIF */ 18 | # 19 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MWCC() 20 | # define FB_BOOST_PP_EXPR_IIF(bit, expr) FB_BOOST_PP_EXPR_IIF_I(bit, expr) 21 | # else 22 | # define FB_BOOST_PP_EXPR_IIF(bit, expr) FB_BOOST_PP_EXPR_IIF_OO((bit, expr)) 23 | # define FB_BOOST_PP_EXPR_IIF_OO(par) FB_BOOST_PP_EXPR_IIF_I ## par 24 | # endif 25 | # 26 | # define FB_BOOST_PP_EXPR_IIF_I(bit, expr) FB_BOOST_PP_EXPR_IIF_ ## bit(expr) 27 | # 28 | # define FB_BOOST_PP_EXPR_IIF_0(expr) 29 | # define FB_BOOST_PP_EXPR_IIF_1(expr) expr 30 | # 31 | # endif 32 | -------------------------------------------------------------------------------- /OdbcJdbc.exp: -------------------------------------------------------------------------------- 1 | SQLAllocConnect 2 | SQLAllocEnv 3 | SQLAllocStmt 4 | SQLBindCol 5 | SQLCancel 6 | SQLColAttributes 7 | SQLConnect 8 | SQLDescribeCol 9 | SQLDisconnect 10 | SQLError 11 | SQLExecDirect 12 | SQLExecute 13 | SQLFetch 14 | SQLFreeConnect 15 | SQLFreeEnv 16 | SQLFreeStmt 17 | SQLGetCursorName 18 | SQLNumResultCols 19 | SQLPrepare 20 | SQLRowCount 21 | SQLSetCursorName 22 | SQLSetParam 23 | SQLTransact 24 | SQLColumns 25 | SQLDriverConnect 26 | SQLGetConnectOption 27 | SQLGetData 28 | SQLGetFunctions 29 | SQLGetInfo 30 | SQLGetStmtOption 31 | SQLGetTypeInfo 32 | SQLParamData 33 | SQLPutData 34 | SQLSetConnectOption 35 | SQLSetStmtOption 36 | SQLSpecialColumns 37 | SQLStatistics 38 | SQLTables 39 | SQLBrowseConnect 40 | SQLColumnPrivileges 41 | SQLDataSources 42 | SQLDescribeParam 43 | SQLExtendedFetch 44 | SQLForeignKeys 45 | SQLMoreResults 46 | SQLNativeSql 47 | SQLNumParams 48 | SQLParamOptions 49 | SQLPrimaryKeys 50 | SQLProcedureColumns 51 | SQLProcedures 52 | SQLSetPos 53 | SQLSetScrollOptions 54 | SQLTablePrivileges 55 | SQLDrivers 56 | SQLBindParameter 57 | SQLAllocHandle 58 | SQLBindParam 59 | SQLCloseCursor 60 | SQLColAttribute 61 | SQLCopyDesc 62 | SQLEndTran 63 | SQLFetchScroll 64 | SQLFreeHandle 65 | SQLGetConnectAttr 66 | SQLGetDescField 67 | SQLGetDescRec 68 | SQLGetDiagField 69 | SQLGetDiagRec 70 | SQLGetEnvAttr 71 | SQLGetStmtAttr 72 | SQLSetConnectAttr 73 | SQLSetDescField 74 | SQLSetDescRec 75 | SQLSetEnvAttr 76 | SQLSetStmtAttr 77 | SQLBulkOperations 78 | -------------------------------------------------------------------------------- /IscDbc/ParameterEvent.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // ParameterEvent.h: interface for the ParameterEvent class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ParameterEvent_H_) 26 | #define _ParameterEvent_H_ 27 | 28 | namespace IscDbcLibrary { 29 | 30 | class ParameterEvent 31 | { 32 | public: 33 | ParameterEvent( ParameterEvent *next, const char *name, int length ); 34 | ~ParameterEvent(); 35 | 36 | char *nameEvent; 37 | int lengthNameEvent; 38 | unsigned int countEvents; 39 | bool changed; 40 | 41 | ParameterEvent *nextParameter; 42 | }; 43 | 44 | }; // end namespace IscDbcLibrary 45 | 46 | #endif // !defined(_ParameterEvent_H_) 47 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/CommonUtil.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // CommonUtil.cpp: Service Util class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #include 26 | #include 27 | #include 28 | #include "OdbcJdbcSetup.h" 29 | #include "CommonUtil.h" 30 | 31 | int nCopyAnsiToWideChar( LPWORD lpWCStr, LPCSTR lpAnsiIn ) 32 | { 33 | int cchAnsi = lstrlen( lpAnsiIn ); 34 | return MultiByteToWideChar( GetACP(), MB_PRECOMPOSED, lpAnsiIn, cchAnsi, (LPWSTR)lpWCStr, cchAnsi ) + 1; 35 | } 36 | 37 | LPWORD lpwAlign( LPWORD lpIn ) 38 | { 39 | uintptr_t ul; 40 | 41 | ul = (uintptr_t)lpIn; 42 | ul += 3; 43 | ul >>= 2; 44 | ul <<= 2; 45 | return (LPWORD)ul; 46 | } 47 | -------------------------------------------------------------------------------- /IscDbc/TimeStamp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Timestamp.h: interface for the Timestamp class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | 26 | #if !defined(_TIMESTAMP_H_INCLUDED_) 27 | #define _TIMESTAMP_H_INCLUDED_ 28 | 29 | #include "SqlTime.h" 30 | #include "DateTime.h" 31 | 32 | namespace IscDbcLibrary { 33 | 34 | class TimeStamp : public DateTime 35 | { 36 | public: 37 | static TimeStamp convert (const char *string, int length); 38 | int getTimeString(int length, char * buffer); 39 | int decodeTime (int nanos, struct tm * times); 40 | 41 | int nanos; // nano seconds 42 | }; 43 | 44 | }; // end namespace IscDbcLibrary 45 | 46 | #endif // !defined(_TIMESTAMP_H_INCLUDED_) 47 | -------------------------------------------------------------------------------- /IscDbc/Error.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Error.h: interface for the Error class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 26 | 27 | 28 | #if !defined(_ERROR_H_) 29 | #define _ERROR_H_ 30 | 31 | #undef ERROR 32 | #undef ASSERT 33 | #define ERROR Error::error 34 | #define ASSERT(f) while (!(f)) Error::assertionFailed (__FILE__, __LINE__) 35 | #define NOT_YET_IMPLEMENTED ASSERT (false) 36 | 37 | 38 | class Error 39 | { 40 | public: 41 | static void assertionFailed (char *fileName, int line); 42 | static void error (char *text, ...); 43 | Error(); 44 | ~Error(); 45 | 46 | }; 47 | 48 | #endif // !defined(_ERROR_H_) 49 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/Environment.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | Enviroument 27 | 28 | 29 | 30 | 31 |

Environment

32 | 33 |

34 | The Firebird ODBC driver allows you to use multiple simultaneous connections 35 | to different databases and different servers, each connection working in its own 36 | specific environment. 37 |

38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /IscDbc/Mutex.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Mutex.h: interface for the Mutex class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_MUTEX_H_INCLUDED_) 26 | #define _MUTEX_H_INCLUDED_ 27 | 28 | #ifdef _PTHREADS 29 | #include 30 | #endif 31 | 32 | #ifdef _WINDOWS 33 | #include 34 | #endif 35 | 36 | namespace classMutex { 37 | 38 | class Mutex 39 | { 40 | public: 41 | void release(); 42 | void lock(); 43 | Mutex(); 44 | ~Mutex(); 45 | 46 | #ifdef _WINDOWS 47 | CRITICAL_SECTION mutex; 48 | #endif 49 | 50 | #ifdef _PTHREADS 51 | pthread_mutex_t mutex; 52 | #endif 53 | 54 | }; 55 | 56 | }; // end namespace classMutex 57 | 58 | #endif // !defined(_MUTEX_H_INCLUDED_) 59 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/SecurityPassword.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | Security_password 27 | 28 | 29 | 30 | 31 |

Security Password

32 | 33 |

When a DSN is created the database password is encrypted and is saved in odbc.ini. 34 | Alternatively the password can be entered during the database connection phase or can be passed using the connection string.

35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /IscDbc/IscPrimaryKeysResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscPrimaryKeysResultSet.h: interface for the IscPrimaryKeysResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCPRIMARYKEYSRESULTSET_H_) 26 | #define _ISCPRIMARYKEYSRESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscPrimaryKeysResultSet : public IscMetaDataResultSet 33 | { 34 | public: 35 | virtual bool nextFetch(); 36 | void getPrimaryKeys (const char * catalog, const char * schemaPattern, const char * tableNamePattern); 37 | IscPrimaryKeysResultSet(IscDatabaseMetaData *metaData); 38 | }; 39 | 40 | }; // end namespace IscDbcLibrary 41 | 42 | #endif // !defined(_ISCPRIMARYKEYSRESULTSET_H_) 43 | -------------------------------------------------------------------------------- /Test/Type.h: -------------------------------------------------------------------------------- 1 | // Type.h: interface for the CType class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_TYPE_H__52063CA1_54A0_11D2_AB3B_0000C01D2301__INCLUDED_) 6 | #define AFX_TYPE_H__52063CA1_54A0_11D2_AB3B_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | enum CharWidth { 13 | oneByte, 14 | twoByte 15 | }; 16 | 17 | enum Type { 18 | Unknown, 19 | Char, 20 | Varchar, 21 | Tiny, // 8 bit int 22 | Short, // 16 bit int 23 | Int, // 32 bit int 24 | Long, // 64 bit int 25 | Float, 26 | Double, 27 | Date, 28 | TextBlob, 29 | BinaryBlob, 30 | DispatchObject, 31 | Domain, // fields only 32 | }; 33 | 34 | 35 | class CType 36 | { 37 | public: 38 | CString getJdbcType(); 39 | bool isCharacter(); 40 | int getLength(); 41 | CString getJavaType(); 42 | CString getOleDbBindType(); 43 | CString getCDeclaration (const char *name, CharWidth charWidth); 44 | int getCLength (CharWidth charWidth); 45 | int getBoundary (CharWidth charWidth); 46 | void setType (long dtodbcTypeype, long precision, const char *typeName); 47 | int getPrecision(); 48 | bool isInteger(); 49 | void setType (Type typ, int len); 50 | void setType (CType *type); 51 | VARTYPE getVariantType(); 52 | bool isLargeObject(); 53 | CType(); 54 | virtual ~CType(); 55 | 56 | Type type; 57 | long precision; 58 | long length; 59 | long scale; 60 | long indirectCount; 61 | }; 62 | 63 | #endif // !defined(AFX_TYPE_H__52063CA1_54A0_11D2_AB3B_0000C01D2301__INCLUDED_) 64 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/control/iif.hpp: -------------------------------------------------------------------------------- 1 | # /* ************************************************************************** 2 | # * * 3 | # * (C) Copyright Paul Mensonides 2002. 4 | # * Distributed under the Boost Software License, Version 1.0. (See 5 | # * accompanying file LICENSE_1_0.txt or copy at 6 | # * http://www.boost.org/LICENSE_1_0.txt) 7 | # * * 8 | # ************************************************************************** */ 9 | # 10 | # /* See http://www.boost.org for most recent version. */ 11 | # 12 | # ifndef FB_BOOST_PREPROCESSOR_CONTROL_IIF_HPP 13 | # define FB_BOOST_PREPROCESSOR_CONTROL_IIF_HPP 14 | # 15 | # include 16 | # 17 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MWCC() 18 | # define FB_BOOST_PP_IIF(bit, t, f) FB_BOOST_PP_IIF_I(bit, t, f) 19 | # else 20 | # define FB_BOOST_PP_IIF(bit, t, f) FB_BOOST_PP_IIF_OO((bit, t, f)) 21 | # define FB_BOOST_PP_IIF_OO(par) FB_BOOST_PP_IIF_I ## par 22 | # endif 23 | # 24 | # if ~FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MSVC() 25 | # define FB_BOOST_PP_IIF_I(bit, t, f) FB_BOOST_PP_IIF_ ## bit(t, f) 26 | # else 27 | # define FB_BOOST_PP_IIF_I(bit, t, f) FB_BOOST_PP_IIF_II(FB_BOOST_PP_IIF_ ## bit(t, f)) 28 | # define FB_BOOST_PP_IIF_II(id) id 29 | # endif 30 | # 31 | # define FB_BOOST_PP_IIF_0(t, f) f 32 | # define FB_BOOST_PP_IIF_1(t, f) t 33 | # 34 | # endif 35 | -------------------------------------------------------------------------------- /IscDbc/IscIndexInfoResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscIndexInfoResultSet.h: interface for the IscIndexInfoResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCINDEXINFORESULTSET_H_) 26 | #define _ISCINDEXINFORESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscIndexInfoResultSet : public IscMetaDataResultSet 33 | { 34 | public: 35 | void getIndexInfo(const char * catalog, const char * schemaPattern, const char * tableNamePattern, bool unique, bool approximate); 36 | virtual bool nextFetch(); 37 | IscIndexInfoResultSet(IscDatabaseMetaData *metaData); 38 | }; 39 | 40 | }; // end namespace IscDbcLibrary 41 | 42 | #endif // !defined(_ISCINDEXINFORESULTSET_H_) 43 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/Environment.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Ambiente 28 | 29 | 30 | 31 | 32 |

Ambiente

33 | 34 |

35 | O Driver de ODBC do Firebird permite que você utilize 36 | multiplas conexões simultâneas a diferentes bancos de 37 | dados e a diferentes servidores, cada conexão trabalhará 38 | no seu ambiente específico. 39 |

40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /IscDbc/IscTablesResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscTablesResultSet.h: interface for the IscTablesResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCTABLESRESULTSET_H_) 26 | #define _ISCTABLESRESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscTablesResultSet : public IscMetaDataResultSet 33 | { 34 | int sqlAllParam; 35 | int curentRowAllParam; 36 | 37 | public: 38 | virtual bool nextFetch(); 39 | void getTables(const char * catalog, const char * schemaPattern, const char * tableNamePattern, int typeCount, const char **types); 40 | IscTablesResultSet(IscDatabaseMetaData *metaData); 41 | }; 42 | 43 | }; // end namespace IscDbcLibrary 44 | 45 | #endif // !defined(_ISCTABLESRESULTSET_H_) 46 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/SecurityPassword.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Security_password 28 | 29 | 30 | 31 | 32 |

Senha de Segurança

33 | 34 |

Quando um NFD (DSN) é criado a senha de acesso ao banco de 35 | dados é criptografada e salva no odbc.ini. A senha também 36 | pode ser informada no momento da conexão com o banco de dados 37 | ou passada usando a string de conexão.

38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /IscDbc/IscProceduresResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscProceduresResultSet.h: interface for the IscProceduresResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCPROCEDURESRESULTSET_H_) 26 | #define _ISCPROCEDURESRESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscProceduresResultSet : public IscMetaDataResultSet 33 | { 34 | public: 35 | virtual bool nextFetch(); 36 | bool canSelectFromProcedure(); 37 | void getProcedures(const char * catalog, const char * schemaPattern, const char * procedureNamePattern); 38 | 39 | IscProceduresResultSet(IscDatabaseMetaData *metaData); 40 | 41 | bool addBlr; 42 | }; 43 | 44 | }; // end namespace IscDbcLibrary 45 | 46 | #endif // !defined(_ISCPROCEDURESRESULTSET_H_) 47 | -------------------------------------------------------------------------------- /IscDbc/IscColumnPrivilegesResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscColumnPrivilegesResultSet.h: interface for the IscColumnPrivilegesResultSet class. 22 | // 23 | ///////////////////////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_IscColumnPrivilegesResultSet_H_) 26 | #define _IscColumnPrivilegesResultSet_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscColumnPrivilegesResultSet : public IscMetaDataResultSet 33 | { 34 | public: 35 | virtual bool nextFetch(); 36 | void getColumnPrivileges(const char * catalog, const char * schemaPattern, const char * tableNamePattern, const char * columnNamePattern); 37 | IscColumnPrivilegesResultSet(IscDatabaseMetaData *metaData); 38 | }; 39 | 40 | }; // end namespace IscDbcLibrary 41 | 42 | #endif // !defined(_IscColumnPrivilegesResultSet_H_) 43 | -------------------------------------------------------------------------------- /IscDbc/Lock.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Lock.cpp: implementation of the Lock class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #include "Lock.h" 26 | 27 | namespace IscDbcLibrary { 28 | 29 | using namespace classMutex; 30 | 31 | ////////////////////////////////////////////////////////////////////// 32 | // Construction/Destruction 33 | ////////////////////////////////////////////////////////////////////// 34 | 35 | Lock::Lock(Mutex *mtx) 36 | { 37 | locked = false; 38 | mutex = mtx; 39 | } 40 | 41 | Lock::~Lock() 42 | { 43 | if (locked) 44 | mutex->release(); 45 | } 46 | 47 | void Lock::lock() 48 | { 49 | if (!locked) 50 | { 51 | mutex->lock(); 52 | locked = true; 53 | } 54 | } 55 | 56 | void Lock::release() 57 | { 58 | if (locked) 59 | { 60 | mutex->release(); 61 | locked = false; 62 | } 63 | } 64 | 65 | }; // end namespace IscDbcLibrary 66 | -------------------------------------------------------------------------------- /ConnectDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2003 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | #if !defined(_CONDIALOG_H_INCLUDED_) 22 | #define _CONDIALOG_H_INCLUDED_ 23 | 24 | #ifdef _WINDOWS 25 | 26 | // ConnectDialog.h : header file 27 | // 28 | #include "resource.h" 29 | 30 | namespace OdbcJdbcLibrary { 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | // CConnectDialog dialog 34 | 35 | class CConnectDialog 36 | { 37 | // Construction 38 | public: 39 | CConnectDialog(); // standard constructor 40 | ~CConnectDialog(); 41 | 42 | // Dialog Data 43 | enum { IDD = IDD_CON_PROPERTIES }; 44 | JString m_user; 45 | JString m_password; 46 | JString m_role; 47 | 48 | public: 49 | intptr_t DoModal(); 50 | 51 | void UpdateData(HWND hDlg, BOOL bSaveAndValidate = TRUE ); 52 | BOOL OnInitDialog(HWND hDlg); 53 | }; 54 | 55 | }; // end namespace OdbcJdbcLibrary 56 | 57 | #endif // _WINDOWS 58 | 59 | #endif // !defined(_CONDIALOG_H_INCLUDED_) 60 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/UsersTabRoles.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // UsersTabRoles.h interface for the UsersTabRoles class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | #if !defined(_UsersTabRoles_h_) 25 | #define _UsersTabRoles_h_ 26 | 27 | namespace OdbcJdbcSetupLibrary { 28 | 29 | using namespace classJString; 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | // CUsersTabRoles dialog 33 | 34 | class CUsersTabRoles : public CUsersTabChild 35 | { 36 | public: 37 | CUsersTabRoles(); 38 | virtual ~CUsersTabRoles(); 39 | 40 | public: 41 | CUsersTabRoles* getObject(); 42 | bool buildDlgChild( HWND hWndParent ); 43 | bool createDialogIndirect( CServiceTabUsers *parentTabCtrl ); 44 | bool OnInitDialog(); 45 | bool addRowToListView(); 46 | 47 | public: 48 | }; 49 | 50 | }; // end namespace OdbcJdbcSetupLibrary 51 | 52 | #endif // !defined(_UsersTabRoles_h_) 53 | -------------------------------------------------------------------------------- /IscDbc/IscSqlType.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscSqlType.h: interface for the IscSqlType class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCSQLTYPE_H_) 26 | #define _ISCSQLTYPE_H_ 27 | 28 | #include 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscSqlType 33 | { 34 | public: 35 | IscSqlType() { memset ( this, 0, sizeof ( *this ) ); } 36 | 37 | void buildType (); 38 | 39 | public: // In 40 | int blrType; 41 | int subType; 42 | int lengthCharIn; 43 | int lengthIn; 44 | int dialect; 45 | int precisionIn; 46 | int scale; 47 | int collationId; 48 | int characterId; 49 | int appOdbcVersion; 50 | 51 | public: // Out 52 | int type; 53 | const char *typeName; 54 | int length; 55 | int bufferLength; 56 | int precision; 57 | }; 58 | 59 | }; // end namespace IscDbcLibrary 60 | 61 | #endif // !defined(_ISCSQLTYPE_H_) 62 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/OdbcJdbcSetup.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // OdbcJdbcSetup.cpp : Defines the initialization routines for the DLL. 22 | // 23 | #include "OdbcJdbcSetup.h" 24 | #include 25 | 26 | #ifdef _DEBUG 27 | #define new DEBUG_NEW 28 | #undef THIS_FILE 29 | static char THIS_FILE[] = __FILE__; 30 | #endif 31 | // 32 | // DllMain should return a value of 1 if 33 | // 34 | namespace OdbcJdbcSetupLibrary { 35 | 36 | HINSTANCE m_hInstance = NULL; 37 | void initCodePageTranslate( int userLCID ); 38 | void getParamFromCommandLine(); 39 | 40 | }; 41 | 42 | using namespace OdbcJdbcSetupLibrary; 43 | 44 | BOOL APIENTRY DllMainSetup( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID ) 45 | { 46 | if ( fdwReason == DLL_PROCESS_ATTACH ) 47 | { 48 | m_hInstance = hinstDLL; 49 | InitCommonControls(); 50 | initCodePageTranslate( GetUserDefaultLCID() ); 51 | getParamFromCommandLine(); 52 | } 53 | 54 | return TRUE; 55 | } 56 | -------------------------------------------------------------------------------- /IscDbc/SQLError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | #ifndef __SQLERROR_H 22 | #define __SQLERROR_H 23 | 24 | #include "SQLException.h" 25 | #include "JString.h" 26 | 27 | namespace IscDbcLibrary { 28 | 29 | class Stream; 30 | 31 | class SQLError : public SQLException 32 | { 33 | public: 34 | virtual int release(); 35 | virtual void addRef(); 36 | virtual const char* getTrace(); 37 | SQLError (int sqlcode, __int64 fbcode, const char *text, ...); 38 | SQLError (SqlCode sqlcode, const char *text, ...); 39 | SQLError (Stream *trace, SqlCode code, const char *txt,...); 40 | ~SQLError() throw(); 41 | 42 | virtual int getFbcode (); 43 | virtual int getSqlcode (); 44 | virtual const char *getText(); 45 | 46 | //void Delete(); 47 | operator const char*(); 48 | 49 | int fbcode; 50 | int sqlcode; 51 | JString text; 52 | JString stackTrace; 53 | int useCount; 54 | }; 55 | 56 | }; // end namespace IscDbcLibrary 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /IscDbc/IscTablePrivilegesResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 2002-08-12 File Created by Carlos G. Alvarez 15 | * 16 | * The Original Code was created by James A. Starkey for IBPhoenix. 17 | * 18 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 19 | * All Rights Reserved. 20 | */ 21 | 22 | // IscTablePrivilegesResultSet.h: interface for the IscTablePrivilegesResultSet class. 23 | // 24 | ///////////////////////////////////////////////////////////////////////////////////////// 25 | 26 | #if !defined(_ISCTABLEPRIVILEGESRESULTSET_H_) 27 | #define _ISCTABLEPRIVILEGESRESULTSET_H_ 28 | 29 | #include "IscMetaDataResultSet.h" 30 | 31 | namespace IscDbcLibrary { 32 | 33 | class IscTablePrivilegesResultSet : public IscMetaDataResultSet 34 | { 35 | public: 36 | virtual bool nextFetch(); 37 | void getTablePrivileges(const char * catalog, const char * schemaPattern, const char * tableNamePattern); 38 | IscTablePrivilegesResultSet(IscDatabaseMetaData *metaData); 39 | 40 | bool allTablesAreSelectable; 41 | }; 42 | 43 | }; // end namespace IscDbcLibrary 44 | 45 | #endif // !defined(_ISCTABLEPRIVILEGESRESULTSET_H_) 46 | -------------------------------------------------------------------------------- /IscDbc/MultibyteConvert.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // MultibyteConvert.h 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_MultibyteConvert_H_) 26 | #define _MultibyteConvert_H_ 27 | 28 | namespace IscDbcLibrary { 29 | 30 | class MultibyteConvert; 31 | 32 | class CMultibyteConvert 33 | { 34 | public: 35 | 36 | CMultibyteConvert() 37 | { 38 | } 39 | }; 40 | 41 | MBSTOWCS adressMbsToWcs( int charsetCode ); 42 | WCSTOMBS adressWcsToMbs( int charsetCode ); 43 | 44 | unsigned int fss_mbstowcs( wchar_t *wcs, const char *mbs, unsigned int length ); 45 | unsigned int fss_wcstombs( char *mbs, const wchar_t *wcs, unsigned int length ); 46 | unsigned int utf8_mbstowcs( wchar_t *wcs, const char *mbs, unsigned int lengthForMBS ); 47 | unsigned int utf8_wcstombs( char *mbs, const wchar_t *wcs, unsigned int lengthForMBS ); 48 | 49 | }; // end namespace IscDbcLibrary 50 | 51 | #endif // !defined(_MultibyteConvert_H_) 52 | -------------------------------------------------------------------------------- /IscDbc/ParameterEvent.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // ParameterEvent.cpp: implementation of the ParameterEvent class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #include 26 | #include "ParameterEvent.h" 27 | 28 | namespace IscDbcLibrary { 29 | 30 | ////////////////////////////////////////////////////////////////////// 31 | // Construction/Destruction 32 | ////////////////////////////////////////////////////////////////////// 33 | 34 | ParameterEvent::ParameterEvent( ParameterEvent *next, const char *name, int length ) 35 | { 36 | nextParameter = next; 37 | lengthNameEvent = length; 38 | countEvents = ~0lu; 39 | changed = false; 40 | 41 | nameEvent = new char[lengthNameEvent + 1]; 42 | memcpy( nameEvent, name, lengthNameEvent ); 43 | nameEvent[lengthNameEvent] = 0; 44 | } 45 | 46 | ParameterEvent::~ParameterEvent() 47 | { 48 | delete [] nameEvent; 49 | } 50 | 51 | }; // end namespace IscDbcLibrary 52 | -------------------------------------------------------------------------------- /SafeEnvThread.h: -------------------------------------------------------------------------------- 1 | #if !defined(_SafeEnvThread__INCLUDED_) 2 | #define _SafeEnvThread__INCLUDED_ 3 | 4 | #if(DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_ENV || DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_CONNECT) 5 | 6 | #ifdef _PTHREADS 7 | #include 8 | #endif 9 | 10 | namespace OdbcJdbcLibrary { 11 | 12 | class MutexEnvThread 13 | { 14 | public: 15 | #ifdef _WINDOWS 16 | static void * mutexLockedLevelDll; 17 | #endif 18 | #ifdef _PTHREADS 19 | static pthread_mutex_t mutexLockedLevelDll; 20 | #endif 21 | 22 | public: 23 | MutexEnvThread() 24 | { 25 | #ifdef _WINDOWS 26 | mutexLockedLevelDll = CreateMutex (NULL, false, NULL); 27 | #endif 28 | #ifdef _PTHREADS 29 | int ret = pthread_mutex_init (&mutexLockedLevelDll, NULL); 30 | #endif 31 | } 32 | 33 | ~MutexEnvThread() 34 | { 35 | #ifdef _WINDOWS 36 | if(mutexLockedLevelDll) 37 | CloseHandle (mutexLockedLevelDll); 38 | #endif 39 | #ifdef _PTHREADS 40 | int ret = pthread_mutex_destroy (&mutexLockedLevelDll); 41 | #endif 42 | } 43 | }; 44 | 45 | class SafeDllThread 46 | { 47 | public: 48 | SafeDllThread() 49 | { 50 | #ifdef _WINDOWS 51 | WaitForSingleObject (MutexEnvThread::mutexLockedLevelDll, INFINITE); 52 | #endif 53 | #ifdef _PTHREADS 54 | pthread_mutex_lock (&MutexEnvThread::mutexLockedLevelDll); 55 | #endif 56 | } 57 | ~SafeDllThread() 58 | { 59 | #ifdef _WINDOWS 60 | ReleaseMutex (MutexEnvThread::mutexLockedLevelDll); 61 | #endif 62 | #ifdef _PTHREADS 63 | pthread_mutex_unlock (&MutexEnvThread::mutexLockedLevelDll); 64 | #endif 65 | } 66 | }; 67 | 68 | }; // end namespace OdbcJdbcLibrary 69 | 70 | #endif // #if(DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_ENV || DRIVER_LOCKED_LEVEL == DRIVER_LOCKED_LEVEL_CONNECT) 71 | 72 | #endif // !defined(_SafeEnvThread__INCLUDED_) 73 | -------------------------------------------------------------------------------- /IscDbc/TypesResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | * 20 | */ 21 | 22 | // TypesResultSet.h: interface for the TypesResultSet class. 23 | // 24 | ////////////////////////////////////////////////////////////////////// 25 | 26 | #if !defined(_TYPESRESULTSET_H_) 27 | #define _TYPESRESULTSET_H_ 28 | 29 | #include "IscResultSet.h" 30 | #include "Sqlda.h" 31 | 32 | namespace IscDbcLibrary { 33 | 34 | class TypesResultSet : public IscResultSet 35 | { 36 | public: // StatementMetaData 37 | virtual int objectVersion(){ return STATEMENTMETADATA_VERSION; } 38 | 39 | public: 40 | TypesResultSet( int dataType, int appOdbcVersion, int bytesPerCharacter, IscConnection* conn ); 41 | ~TypesResultSet(); 42 | 43 | virtual bool nextFetch(); 44 | virtual bool next(); 45 | int findType(); 46 | 47 | int recordNumber; 48 | int dataTypes; 49 | Sqlda outputSqlda; 50 | std::vector indicators; 51 | }; 52 | 53 | }; // end namespace IscDbcLibrary 54 | 55 | #endif // !defined(_TYPESRESULTSET_H_) 56 | -------------------------------------------------------------------------------- /IscDbc/IscCrossReferenceResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscCrossReferenceResultSet.h: interface for the IscCrossReferenceResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCCROSSREFERENCERESULTSET_H_) 26 | #define _ISCCROSSREFERENCERESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | 30 | namespace IscDbcLibrary { 31 | 32 | class IscCrossReferenceResultSet : public IscMetaDataResultSet 33 | { 34 | public: 35 | bool stringEqual (const char *p1, const char *p2); 36 | int getRule (const char *rule); 37 | virtual bool nextFetch(); 38 | void getCrossReference(const char* primaryCatalog, const char* primarySchema, const char* primaryTable,const char* foreignCatalog, const char* foreignSchema, const char* foreignTable); 39 | IscCrossReferenceResultSet(IscDatabaseMetaData *metaData); 40 | }; 41 | 42 | }; // end namespace IscDbcLibrary 43 | 44 | #endif // !defined(_ISCCROSSREFERENCERESULTSET_H_) 45 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/UsersTabMemberShips.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // UsersTabMemberShips.h interface for the UsersTabMemberShips class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | #if !defined(_UsersTabMemberShips_h_) 25 | #define _UsersTabMemberShips_h_ 26 | 27 | namespace OdbcJdbcSetupLibrary { 28 | 29 | using namespace classJString; 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | // CUsersTabMemberShips dialog 33 | 34 | class CUsersTabMemberShips : public CUsersTabChild 35 | { 36 | public: 37 | CUsersTabMemberShips(); 38 | virtual ~CUsersTabMemberShips(); 39 | 40 | public: 41 | CUsersTabMemberShips* getObject(); 42 | bool buildDlgChild( HWND hWndParent ); 43 | bool createDialogIndirect( CServiceTabUsers *parentTabCtrl ); 44 | bool OnInitDialog(); 45 | bool addRowToListView(); 46 | 47 | public: 48 | }; 49 | 50 | }; // end namespace OdbcJdbcSetupLibrary 51 | 52 | #endif // !defined(_UsersTabMemberShips_h_) 53 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/Usage.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Recomendações de uso 28 | 29 | 30 | 31 | 32 |

Uso

33 | 34 |

Ambiente

35 | 36 |

Multithreading

37 | 38 |

Transações

39 | 40 |

Senha de Segurança

41 | 42 |

Cursores

43 | 44 |

Stored Procedures

45 | 46 |

Tipo de dados Array

47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/Usage.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | Recommendations of use 27 | 28 | 29 | 30 | 31 |

Usage

32 | 33 |

Environment

34 | 35 |

Multithreading

36 | 37 |

Transactions

38 | 39 |

Security Password

40 | 41 |

Cursors

42 | 43 |

Stored Procedures

44 | 45 |

Array Data Type

46 | 47 |

Using with Clarion

48 | 49 | 50 | -------------------------------------------------------------------------------- /IscDbc/IscSpecialColumnsResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Ann W. Harrison for IBPhoenix. 16 | * 17 | * Copyright (c) 2001 Ann W. Harrison 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscSpecialColumnsResultSet.h: interface for the IscSpecialColumnsResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCSPECIALCOLUMNSRESULTSET_H_) 26 | #define _ISCSPECIALCOLUMNSRESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | #include "IscSqlType.h" 30 | 31 | namespace IscDbcLibrary { 32 | 33 | class IscSpecialColumnsResultSet : public IscMetaDataResultSet 34 | { 35 | public: 36 | IscSpecialColumnsResultSet(IscDatabaseMetaData *metaData); 37 | virtual void specialColumns (const char * catalog, const char * schema, const char * table, int scope, int nullable); 38 | virtual bool nextFetch(); 39 | 40 | private: 41 | virtual void setCharLen (int charLenInd, int fldLenInd, IscSqlType &sqlType); 42 | virtual void adjustResults (IscSqlType &sqlType); 43 | int index_id; 44 | IscSqlType sqlType; 45 | }; 46 | 47 | }; // end namespace IscDbcLibrary 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/FirebirdODBC.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | Firebird ODBC 27 | 28 | 29 | 30 | 31 |

32 | 33 |

Firebird ODBC Configuration Parameters

34 | 35 |

Connection Attributes

36 | 37 |

Connection Examples

38 | 39 |

Usage

40 | 41 |

About the Firebird ODBC driver

42 | 43 |

Licensing and Copyright of the Firebird ODBC driver

44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /ResourceManagerSink.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2004 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // ResourceManagerSink.h interface for the ResourceManagerSink class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | #ifdef _WINDOWS 25 | 26 | #if _MSC_VER > 1000 27 | 28 | #if !defined(_ResourceManagerSink_H_) 29 | #define _ResourceManagerSink_H_ 30 | 31 | namespace OdbcJdbcLibrary { 32 | 33 | class ResourceManagerSink: public CComObjectRoot, public IResourceManagerSink 34 | { 35 | TransactionResourceAsync * tranResourceAsync; 36 | 37 | public: 38 | 39 | BEGIN_COM_MAP( ResourceManagerSink ) 40 | COM_INTERFACE_ENTRY( IResourceManagerSink ) 41 | END_COM_MAP() 42 | 43 | ResourceManagerSink( void ); 44 | ~ResourceManagerSink( void ); 45 | 46 | public: 47 | 48 | STDMETHODIMP TMDown( void ); 49 | void setResourceAsync( TransactionResourceAsync * ptResAsync ); 50 | 51 | }; 52 | 53 | }; // end namespace OdbcJdbcLibrary 54 | 55 | #endif // !defined(_ResourceManagerSink_H_) 56 | 57 | #endif // _MSC_VER > 1000 58 | 59 | #endif // _WINDOWS 60 | -------------------------------------------------------------------------------- /Builds/MinGW_Dev-Cpp.win/OdbcJdbc.layout: -------------------------------------------------------------------------------- 1 | [Editors] 2 | Order= 3 | Focused=-1 4 | 5 | [Editor_0] 6 | Open=0 7 | Top=0 8 | 9 | [Editor_1] 10 | Open=0 11 | Top=0 12 | 13 | [Editor_2] 14 | Open=0 15 | Top=0 16 | 17 | [Editor_3] 18 | Open=0 19 | Top=0 20 | 21 | [Editor_4] 22 | Open=0 23 | Top=0 24 | 25 | [Editor_5] 26 | Open=0 27 | Top=0 28 | 29 | [Editor_6] 30 | Open=0 31 | Top=0 32 | 33 | [Editor_7] 34 | Open=0 35 | Top=0 36 | CursorCol=1 37 | CursorRow=224 38 | TopLine=199 39 | LeftChar=1 40 | 41 | [Editor_8] 42 | Open=0 43 | Top=0 44 | 45 | [Editor_9] 46 | Open=0 47 | Top=0 48 | 49 | [Editor_10] 50 | Open=0 51 | Top=0 52 | 53 | [Editor_11] 54 | Open=0 55 | Top=0 56 | 57 | [Editor_12] 58 | Open=0 59 | Top=0 60 | 61 | [Editor_13] 62 | Open=0 63 | Top=0 64 | 65 | [Editor_14] 66 | Open=0 67 | Top=0 68 | 69 | [Editor_15] 70 | Open=0 71 | Top=0 72 | 73 | [Editor_16] 74 | Open=0 75 | Top=0 76 | 77 | [Editor_17] 78 | Open=0 79 | Top=0 80 | 81 | [Editor_18] 82 | Open=0 83 | Top=0 84 | CursorCol=3 85 | CursorRow=220 86 | TopLine=224 87 | LeftChar=1 88 | 89 | [Editor_19] 90 | Open=0 91 | Top=0 92 | 93 | [Editor_20] 94 | Open=0 95 | Top=0 96 | 97 | [Editor_21] 98 | Open=0 99 | Top=0 100 | 101 | [Editor_22] 102 | Open=0 103 | Top=0 104 | 105 | [Editor_23] 106 | Open=0 107 | Top=0 108 | 109 | [Editor_24] 110 | Open=0 111 | Top=0 112 | 113 | [Editor_25] 114 | Open=0 115 | Top=0 116 | 117 | [Editor_26] 118 | Open=0 119 | Top=0 120 | 121 | [Editor_27] 122 | Open=0 123 | Top=0 124 | 125 | [Editor_28] 126 | Open=0 127 | Top=0 128 | 129 | [Editor_29] 130 | Open=0 131 | Top=0 132 | 133 | [Editor_30] 134 | Open=0 135 | Top=0 136 | 137 | [Editor_31] 138 | Open=0 139 | Top=0 140 | 141 | [Editor_32] 142 | Open=0 143 | Top=0 144 | -------------------------------------------------------------------------------- /IscDbc/IscProcedureColumnsResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscProcedureColumnsResultSet.h: interface for the IscProcedureColumnsResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCPROCEDURECOLUMNSRESULTSET_H_) 26 | #define _ISCPROCEDURECOLUMNSRESULTSET_H_ 27 | 28 | #include "IscMetaDataResultSet.h" 29 | #include "IscSqlType.h" 30 | 31 | namespace IscDbcLibrary { 32 | 33 | class IscProcedureColumnsResultSet : public IscMetaDataResultSet 34 | { 35 | public: 36 | virtual bool nextFetch(); 37 | void getProcedureColumns (const char *catalog, 38 | const char *schemaPattern, 39 | const char *procedureNamePattern, 40 | const char *columnNamePattern); 41 | IscProcedureColumnsResultSet(IscDatabaseMetaData *metaData); 42 | 43 | void adjustResults (IscSqlType &sqlType); 44 | 45 | private: 46 | IscSqlType sqlType; 47 | }; 48 | 49 | }; // end namespace IscDbcLibrary 50 | 51 | #endif // !defined(_ISCPROCEDURECOLUMNSRESULTSET_H_) 52 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/UserDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // UserDialog.h interface for the User Dialog class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | #if !defined(_UserDialog_h_) 25 | #define _UserDialog_h_ 26 | 27 | namespace OdbcJdbcSetupLibrary { 28 | 29 | using namespace classJString; 30 | 31 | class CUsersTabUsers; 32 | ///////////////////////////////////////////////////////////////////////////// 33 | // CUserDialog dialog 34 | 35 | class CUserDialog 36 | { 37 | public: 38 | CUserDialog( CUsersTabUsers *parentTab, const char *headDlg ); 39 | ~CUserDialog(); 40 | 41 | public: 42 | intptr_t DoModal(); 43 | bool OnInitDialog( HWND hWndDlg ); 44 | void updateData( HWND hDlg, BOOL bSaveAndValidate = TRUE ); 45 | bool onCommand( HWND hWnd, int nCommand ); 46 | bool validateFields(); 47 | 48 | public: 49 | CUsersTabUsers *parent; 50 | HWND hDlg; 51 | const char *headerDlg; 52 | }; 53 | 54 | }; // end namespace OdbcJdbcSetupLibrary 55 | 56 | #endif // !defined(_UserDialog_h_) 57 | -------------------------------------------------------------------------------- /IscDbc/DateTime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Jame6s A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // DateTime.h: interface for the DateTime class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | 26 | #if !defined(_DATETIME_H_) 27 | #define _DATETIME_H_ 28 | 29 | namespace IscDbcLibrary { 30 | 31 | class DateTime 32 | { 33 | public: 34 | int getString (int length, char *buffer); 35 | int getString (const char * format, int length, char * buffer); 36 | double getDouble(); 37 | static int getNow(); 38 | static int getToday(); 39 | static DateTime conversionError(); 40 | static bool match (const char *str1, const char *str2); 41 | static int lookup (const char *string, const char **table); 42 | static DateTime convert (const char *string, int length); 43 | static signed int decodeDate (signed int nday, struct tm *times); 44 | static signed int encodeDate (struct tm *times); 45 | static signed int yday (struct tm *times); 46 | 47 | signed int date; 48 | }; 49 | 50 | }; // end namespace IscDbcLibrary 51 | 52 | #endif // !defined(_DATETIME_H_) 53 | -------------------------------------------------------------------------------- /MbsAndWcs.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2007 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | #ifdef _WINDOWS 22 | #include 23 | #include 24 | 25 | extern UINT codePage; // from Main.cpp 26 | 27 | size_t _MbsToWcs( wchar_t *wcstr, const char *mbstr, size_t count ) 28 | { 29 | if (wcstr && !count) return count; 30 | 31 | size_t len = MultiByteToWideChar( codePage, 32 | 0, 33 | mbstr, 34 | -1, 35 | wcstr, 36 | !wcstr ? 0 : (int)count ); 37 | if ( len > 0 ) 38 | len--; 39 | else if ( wcstr ) 40 | len = count; 41 | 42 | return len; 43 | } 44 | 45 | size_t _WcsToMbs( char *mbstr, const wchar_t *wcstr, size_t count ) 46 | { 47 | if (mbstr && !count) return count; 48 | 49 | size_t len = WideCharToMultiByte( codePage, 50 | 0, 51 | wcstr, 52 | -1, 53 | (LPSTR)mbstr, 54 | !mbstr ? 0 : (int)count, 55 | NULL, 56 | NULL ); 57 | if ( len > 0 ) 58 | len--; 59 | else if ( mbstr ) 60 | len = count; 61 | 62 | return len; 63 | } 64 | 65 | #endif // _WINDOWS 66 | -------------------------------------------------------------------------------- /Test/Gen.cpp: -------------------------------------------------------------------------------- 1 | // Gen.cpp: implementation of the Gen class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #include "stdafx.h" 6 | //#include "MCET.h" 7 | #include "Gen.h" 8 | #include "LinkedList.h" 9 | #include "Field.h" 10 | 11 | #define ISLOWER(c) (c >= 'a' && c <= 'z') 12 | 13 | GenType genType = GenGeneric; 14 | 15 | #ifdef _DEBUG 16 | #undef THIS_FILE 17 | static char THIS_FILE[]=__FILE__; 18 | #define new DEBUG_NEW 19 | #endif 20 | 21 | ////////////////////////////////////////////////////////////////////// 22 | // Construction/Destruction 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | Gen::Gen() 26 | { 27 | 28 | } 29 | 30 | Gen::~Gen() 31 | { 32 | 33 | } 34 | 35 | CString Gen::getName() 36 | { 37 | return name; 38 | } 39 | 40 | CString Gen::genFieldList(LinkedList *list) 41 | { 42 | CString string; 43 | char *sep = " ("; 44 | 45 | FOR_OBJECTS (Field*, field, list); 46 | string += sep; 47 | string += field->name; 48 | sep = ", "; 49 | END_FOR; 50 | 51 | string += ")"; 52 | 53 | return string; 54 | } 55 | 56 | CString Gen::getIdentifier() 57 | { 58 | CString string; 59 | char c; 60 | 61 | for (const char *p = name; c = *p++;) 62 | if ((c >= 'a' && c <= 'z') || 63 | (c >= 'A' && c <= 'Z') || 64 | (c >= '0' && c <= '9')) 65 | string += c; 66 | else 67 | string += '_'; 68 | 69 | return string; 70 | } 71 | 72 | int Gen::hash(const char * string, int tableSize) 73 | { 74 | int value = 0, c; 75 | 76 | while (c = (unsigned) *string++) 77 | { 78 | if (ISLOWER (c)) 79 | c -= 'a' - 'A'; 80 | value = value * 11 + c; 81 | } 82 | 83 | if (value < 0) 84 | value = -value; 85 | 86 | return value % tableSize; 87 | } 88 | 89 | int Gen::hash(int tableSize) 90 | { 91 | return hash (name, tableSize); 92 | } 93 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/debug/error.hpp: -------------------------------------------------------------------------------- 1 | # /* ************************************************************************** 2 | # * * 3 | # * (C) Copyright Paul Mensonides 2002. 4 | # * Distributed under the Boost Software License, Version 1.0. (See 5 | # * accompanying file LICENSE_1_0.txt or copy at 6 | # * http://www.boost.org/LICENSE_1_0.txt) 7 | # * * 8 | # ************************************************************************** */ 9 | # 10 | # /* See http://www.boost.org for most recent version. */ 11 | # 12 | # ifndef FB_BOOST_PREPROCESSOR_DEBUG_ERROR_HPP 13 | # define FB_BOOST_PREPROCESSOR_DEBUG_ERROR_HPP 14 | # 15 | # include 16 | # include 17 | # 18 | # /* FB_BOOST_PP_ERROR */ 19 | # 20 | # if FB_BOOST_PP_CONFIG_ERRORS 21 | # define FB_BOOST_PP_ERROR(code) FB_BOOST_PP_CAT(FB_BOOST_PP_ERROR_, code) 22 | # endif 23 | # 24 | # define FB_BOOST_PP_ERROR_0x0000 FB_BOOST_PP_ERROR(0x0000, FB_BOOST_PP_INDEX_OUT_OF_BOUNDS) 25 | # define FB_BOOST_PP_ERROR_0x0001 FB_BOOST_PP_ERROR(0x0001, FB_BOOST_PP_WHILE_OVERFLOW) 26 | # define FB_BOOST_PP_ERROR_0x0002 FB_BOOST_PP_ERROR(0x0002, FB_BOOST_PP_FOR_OVERFLOW) 27 | # define FB_BOOST_PP_ERROR_0x0003 FB_BOOST_PP_ERROR(0x0003, FB_BOOST_PP_REPEAT_OVERFLOW) 28 | # define FB_BOOST_PP_ERROR_0x0004 FB_BOOST_PP_ERROR(0x0004, FB_BOOST_PP_LIST_FOLD_OVERFLOW) 29 | # define FB_BOOST_PP_ERROR_0x0005 FB_BOOST_PP_ERROR(0x0005, FB_BOOST_PP_SEQ_FOLD_OVERFLOW) 30 | # define FB_BOOST_PP_ERROR_0x0006 FB_BOOST_PP_ERROR(0x0006, FB_BOOST_PP_ARITHMETIC_OVERFLOW) 31 | # define FB_BOOST_PP_ERROR_0x0007 FB_BOOST_PP_ERROR(0x0007, FB_BOOST_PP_DIVISION_BY_ZERO) 32 | # 33 | # endif 34 | -------------------------------------------------------------------------------- /Test/Database.h: -------------------------------------------------------------------------------- 1 | // PDatabase.h: interface for the CPDatabase class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(AFX_PDATABASE_H__7427858B_AAF8_11D1_AB1B_0000C01D2301__INCLUDED_) 6 | #define AFX_PDATABASE_H__7427858B_AAF8_11D1_AB1B_0000C01D2301__INCLUDED_ 7 | 8 | #if _MSC_VER >= 1000 9 | #pragma once 10 | #endif // _MSC_VER >= 1000 11 | 12 | #include 13 | #include "LinkedList.h" // Added by ClassView 14 | 15 | #define PK_HASH_SIZE 101 16 | 17 | class Table; 18 | class CProject; 19 | class Index; 20 | class Field; 21 | class NetfraDatabase; 22 | 23 | class Database 24 | { 25 | public: 26 | void setTrace (const char *logFile); 27 | void copyAll (NetfraDatabase *db); 28 | void createAll (NetfraDatabase *db); 29 | void clear(); 30 | Index* findPrimaryKey (Field *field); 31 | void clearXRef(); 32 | void genDocumentation (CProject *project, CString directory); 33 | CString getURL(); 34 | void* allocStatement(); 35 | void clearReferences(); 36 | void countObjects(); 37 | Table* findTable (const char *name); 38 | void freeStatement (void* statement); 39 | CString getConnectOption (const char *option); 40 | LinkedList* getTables(); 41 | LinkedList* getProcedures(); 42 | CString GetConnect(); 43 | operator CDatabase*(); 44 | CString rewriteConnectString (const char*string); 45 | virtual BOOL OpenEx (LPCTSTR connectString, DWORD dwOptions=0); 46 | void setName (CString& newName); 47 | 48 | Database(); 49 | virtual ~Database(); 50 | CString name; 51 | 52 | CString connectString; 53 | bool primaryKeySupport; 54 | 55 | protected: 56 | int statements; 57 | LinkedList tables; 58 | LinkedList procedures; 59 | CDatabase *database; 60 | 61 | Index *primaryKeys [PK_HASH_SIZE]; 62 | }; 63 | 64 | #endif // !defined(AFX_PDATABASE_H__7427858B_AAF8_11D1_AB1B_0000C01D2301__INCLUDED_) 65 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/OdbcJdbcSetup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | 22 | // OdbcJdbcSetup.h : main header file for the ODBCJDBCSETUP DLL 23 | // 24 | 25 | #if !defined(_ODBCJDBCSETUP_H_INCLUDED_) 26 | #define _ODBCJDBCSETUP_H_INCLUDED_ 27 | 28 | #include 29 | #include "../IscDbc/JString.h" 30 | 31 | #ifdef _WINDOWS 32 | #include 33 | 34 | #if _MSC_VER >= 1400 // VC80 and later 35 | #define strcasecmp _stricmp 36 | #define strncasecmp _strnicmp 37 | #else 38 | #define strcasecmp stricmp 39 | #define strncasecmp strnicmp 40 | #endif // _MSC_VER >= 1400 41 | 42 | #define snprintf _snprintf 43 | #define swprintf _snwprintf 44 | #endif 45 | 46 | #define ISLOWER(c) ((c) >= 'a' && (c) <= 'z') 47 | #define UPPER(c) ((ISLOWER (c)) ? (c) - 'a' + 'A' : (c)) 48 | #define IS_END_TOKEN(c) ((c) == '\0' || (c) == ';' || (c) == '\n' || (c) == '\r' || (c) == '\t') 49 | #define IS_CHECK_YES(c) ((c) == 'Y' || (c) == '1') 50 | #define IS_CHECK_NO(c) ((c) == 'N' || (c) == '0') 51 | 52 | #include "resource.h" // main symbols 53 | 54 | #endif // !defined(_ODBCJDBCSETUP_H_INCLUDED_) 55 | -------------------------------------------------------------------------------- /IscDbc/SqlTime.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Ann W. Harrison for IBPhoenix. 16 | * 17 | * Copyright (c) Ann W. Harrison 18 | * All Rights Reserved. 19 | */ 20 | // SqlTime.cpp: implementation of the SqlTime class. 21 | // 22 | ////////////////////////////////////////////////////////////////////// 23 | 24 | #include "IscDbc.h" 25 | #include "SqlTime.h" 26 | #include 27 | #include 28 | 29 | namespace IscDbcLibrary { 30 | 31 | SqlTime SqlTime::convert(const char * string, int length) 32 | { 33 | SqlTime time; 34 | time.timeValue = 0; 35 | return time; 36 | } 37 | 38 | int SqlTime::getString (int length, char * buffer) 39 | { 40 | return getString ("%H:%M:%S", length, buffer); 41 | } 42 | 43 | int SqlTime::getString(const char * format, int length, char * buffer) 44 | { 45 | struct tm tmTemp; 46 | struct tm *time = &tmTemp; 47 | memset (time, 0, sizeof (tmTemp)); 48 | 49 | int minutes; 50 | 51 | minutes = timeValue / (ISC_TIME_SECONDS_PRECISION * 60); 52 | time->tm_hour = minutes / 60; 53 | time->tm_min = minutes % 60; 54 | time->tm_sec = (timeValue / ISC_TIME_SECONDS_PRECISION) % 60; 55 | 56 | return (int)strftime (buffer, length, format, time); 57 | } 58 | 59 | }; // end namespace IscDbcLibrary 60 | -------------------------------------------------------------------------------- /IscDbc/IscMetaDataResultSet.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // IscMetaDataResultSet.h: interface for the IscMetaDataResultSet class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ISCMETADATARESULTSET_H_) 26 | #define _ISCMETADATARESULTSET_H_ 27 | 28 | #include "IscResultSet.h" 29 | #include "JString.h" // Added by ClassView 30 | 31 | namespace IscDbcLibrary { 32 | 33 | class IscDatabaseMetaData; 34 | 35 | class IscMetaDataResultSet : public IscResultSet 36 | { 37 | public: 38 | void expandPattern(char *& stringOut, const char *prefix, const char * string, const char * pattern); 39 | void addString(char *& stringOut, const char * string, int length = 0); 40 | void convertBlobToString( int indSrc, int indDst ); 41 | bool isWildcarded (const char *pattern); 42 | virtual void prepareStatement (const char *sql); 43 | virtual bool next(); 44 | 45 | IscMetaDataResultSet(IscDatabaseMetaData *meta); 46 | 47 | IscDatabaseMetaData *metaData; 48 | }; 49 | 50 | }; // end namespace IscDbcLibrary 51 | 52 | #endif // !defined(_ISCMETADATARESULTSET_H_) 53 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/FirebirdODBC.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Driver ODBC do Firebird 28 | 29 | 30 | 31 | 32 |

33 | 34 |

Parâmetros de Configuração do driver ODBC do Firebird

35 | 36 |

Atributos da Conexão

37 | 38 |

Exemplos de Conexão

39 | 40 |

Uso

41 | 42 |

Sobre o driver ODBC do Firebird

43 | 44 |

Copyright do Driver de ODBC do Firebird

45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /IscDbc/Parameters.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Parameters.h: interface for the Parameters class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 26 | 27 | 28 | #if !defined(_PARAMETERS_H_) 29 | #define _PARAMETERS_H_ 30 | 31 | #include "Properties.h" 32 | 33 | namespace IscDbcLibrary { 34 | 35 | class Parameter; 36 | 37 | class Parameters : public Properties 38 | { 39 | public: 40 | void clear(); 41 | void release(); 42 | void copy (Properties *properties); 43 | virtual const char* getValue (int index); 44 | virtual const char* getName (int index); 45 | virtual int getCount(); 46 | virtual const char* findValue (const char *name, const char *defaultValue); 47 | virtual void putValue(const char * name, int nameLength, const char * value, int valueLength); 48 | virtual void putValue(const char * name, const char * value); 49 | Parameters(); 50 | ~Parameters(); 51 | 52 | Parameter *parameters; 53 | int count; 54 | }; 55 | 56 | }; // end namespace IscDbcLibrary 57 | 58 | #endif // !defined(_PARAMETERS_H_) 59 | -------------------------------------------------------------------------------- /IscDbc/Error.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Error.cpp: implementation of the Error class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 26 | 27 | //#include "Engine.h" 28 | #include "Error.h" 29 | #include 30 | #include 31 | #include "SQLError.h" 32 | 33 | #ifdef _DEBUG 34 | #undef THIS_FILE 35 | static char THIS_FILE[]=__FILE__; 36 | #endif 37 | 38 | ////////////////////////////////////////////////////////////////////// 39 | // Construction/Destruction 40 | ////////////////////////////////////////////////////////////////////// 41 | 42 | Error::Error() 43 | { 44 | 45 | } 46 | 47 | Error::~Error() 48 | { 49 | 50 | } 51 | 52 | void Error::error(char * string, ...) 53 | { 54 | char buffer [256]; 55 | 56 | va_list args; 57 | va_start (args, string); 58 | vsprintf (buffer, string, args); 59 | //printf ("%s\n", buffer); 60 | throw SQLEXCEPTION (BUG_CHECK, buffer); 61 | } 62 | 63 | void Error::assertionFailed(char * fileName, int line) 64 | { 65 | error ("assertion failed at line %d in file %s", line, fileName); 66 | } 67 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/About.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | About the Firebird ODBC driver 27 | 28 | 29 | 30 | 31 |

About the Firebird ODBC driver

32 | 33 |

The Firebird ODBC driver supports Firebird for Windows, FreeBSD, Solaris, 34 | and Linux.

35 | 36 |

The Firebird ODBC driver consists of the following files:

37 | 38 |

OdbcFb.dll

39 | 40 |

- Implements the ODBC API, provides access to the ODBC Manager. Can be used without needing the ODBC Manager.
41 | - The JDBC interface, provides access to Firebird via the Firebird API.
42 | - Install (Uninstall) the Firebird ODBC driver and configure the DSN. 43 |

44 | 45 |

OdbcFb.chm

46 | 47 |

Help for the Firebird ODBC driver.

48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /Install/HtmlHelp/html/Cursors.htm: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 25 | 26 | Cursors 27 | 28 | 29 | 30 | 31 |

Cursors

32 | 33 |

The current Firebird ODBC driver the cursors Dynamic and Keyset will be 34 | modified to use cursor Static. As such it is not possible to update sets. 35 | For best performance use the use the cursor ForwardOnly. 36 | The read operators: (SQLFetch, SQLExtendedFetch, SQLScrollFetch) use 37 | SQL_ROWSET_SIZE and SQL_ATTR_ROW_ARRAY_SIZE. 38 | For best performance using blob fields use the operator 39 | SQLBindParameter (regardless of the size of the blob field) as this will work 40 | much faster than using SQLPutData/ SQLGetData.

41 | 42 |

For more details of how to do this and for other advanced topics please look at the examples.

43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /IscDbc/Parameter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Parameter.cpp: implementation of the Parameter class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 26 | 27 | #include 28 | #include "Parameter.h" 29 | 30 | #ifdef _DEBUG 31 | #undef THIS_FILE 32 | static char THIS_FILE[]=__FILE__; 33 | #endif 34 | 35 | namespace IscDbcLibrary { 36 | 37 | ////////////////////////////////////////////////////////////////////// 38 | // Construction/Destruction 39 | ////////////////////////////////////////////////////////////////////// 40 | 41 | Parameter::Parameter(Parameter *nxt, const char *nam, int namLen, const char *val, int valLen) 42 | { 43 | next = nxt; 44 | nameLength = namLen; 45 | name = new char [nameLength + 1]; 46 | memcpy (name, nam, nameLength); 47 | name [nameLength] = 0; 48 | valueLength = valLen; 49 | value = new char [valueLength + 1]; 50 | memcpy (value, val, valueLength); 51 | value [valueLength] = 0; 52 | } 53 | 54 | Parameter::~Parameter() 55 | { 56 | delete [] name; 57 | delete [] value; 58 | } 59 | 60 | }; // end namespace IscDbcLibrary 61 | -------------------------------------------------------------------------------- /makefile.in: -------------------------------------------------------------------------------- 1 | DateTime.o: IscDbc/DateTime.cpp IscDbc/Engine.h IscDbc/JString.h \ 2 | IscDbc/DateTime.h IscDbc/SQLError.h IscDbc/SQLException.h 3 | DescRecord.o: DescRecord.cpp OdbcDesc.h OdbcObject.h OdbcJdbc.h \ 4 | IscDbc/JString.h DescRecord.h 5 | JString.o: IscDbc/JString.cpp IscDbc/JString.h 6 | Main.o: Main.cpp OdbcEnv.h OdbcObject.h OdbcJdbc.h IscDbc/JString.h \ 7 | OdbcConnection.h OdbcDesc.h OdbcStatement.h 8 | OdbcConnection.o: OdbcConnection.cpp OdbcJdbc.h OdbcConnection.h \ 9 | OdbcDesc.h OdbcObject.h IscDbc/JString.h OdbcEnv.h SetupAttributes.h \ 10 | IscDbc/Connection.h IscDbc/Blob.h IscDbc/Properties.h \ 11 | IscDbc/SQLException.h OdbcStatement.h InfoItems.h 12 | OdbcDateTime.o: OdbcDateTime.cpp OdbcDateTime.h IscDbc/Connection.h \ 13 | IscDbc/Blob.h IscDbc/Properties.h IscDbc/SQLException.h \ 14 | IscDbc/TimeStamp.h IscDbc/SqlTime.h IscDbc/DateTime.h OdbcStatement.h \ 15 | OdbcObject.h OdbcJdbc.h IscDbc/JString.h 16 | OdbcDesc.o: OdbcDesc.cpp OdbcDesc.h OdbcObject.h OdbcJdbc.h \ 17 | IscDbc/JString.h OdbcConnection.h DescRecord.h 18 | OdbcEnv.o: OdbcEnv.cpp OdbcJdbc.h OdbcEnv.h OdbcObject.h \ 19 | IscDbc/JString.h OdbcConnection.h OdbcDesc.h 20 | OdbcError.o: OdbcError.cpp OdbcJdbc.h OdbcError.h IscDbc/JString.h 21 | OdbcObject.o: OdbcObject.cpp OdbcObject.h OdbcJdbc.h IscDbc/JString.h \ 22 | OdbcError.h IscDbc/SQLException.h 23 | OdbcStatement.o: OdbcStatement.cpp OdbcStatement.h OdbcObject.h \ 24 | OdbcJdbc.h IscDbc/JString.h OdbcConnection.h OdbcDesc.h OdbcError.h \ 25 | IscDbc/Connection.h IscDbc/Blob.h IscDbc/Properties.h \ 26 | IscDbc/SQLException.h OdbcDateTime.h IscDbc/TimeStamp.h \ 27 | IscDbc/SqlTime.h IscDbc/DateTime.h 28 | SQLError.o: IscDbc/SQLError.cpp IscDbc/Engine.h IscDbc/JString.h \ 29 | IscDbc/SQLError.h IscDbc/SQLException.h IscDbc/Stream.h 30 | SqlTime.o: IscDbc/SqlTime.cpp IscDbc/SqlTime.h 31 | TimeStamp.o: IscDbc/TimeStamp.cpp IscDbc/Engine.h IscDbc/JString.h \ 32 | IscDbc/TimeStamp.h IscDbc/SqlTime.h IscDbc/DateTime.h 33 | -------------------------------------------------------------------------------- /Builds/MsVc2022.win/OdbcFb.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio Version 17 3 | VisualStudioVersion = 17.6.33815.320 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OdbcFb", "OdbcFb.vcxproj", "{C6127398-654D-4196-B8C1-5BB32D75D7FD}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|ARM64 = Debug|ARM64 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|ARM64 = Release|ARM64 13 | Release|Win32 = Release|Win32 14 | Release|x64 = Release|x64 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|ARM64.ActiveCfg = Debug|ARM64 18 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|ARM64.Build.0 = Debug|ARM64 19 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.ActiveCfg = Debug|Win32 20 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|Win32.Build.0 = Debug|Win32 21 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.ActiveCfg = Debug|x64 22 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Debug|x64.Build.0 = Debug|x64 23 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|ARM64.ActiveCfg = Release|ARM64 24 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|ARM64.Build.0 = Release|ARM64 25 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.ActiveCfg = Release|Win32 26 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|Win32.Build.0 = Release|Win32 27 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.ActiveCfg = Release|x64 28 | {C6127398-654D-4196-B8C1-5BB32D75D7FD}.Release|x64.Build.0 = Release|x64 29 | EndGlobalSection 30 | GlobalSection(SolutionProperties) = preSolution 31 | HideSolutionNode = FALSE 32 | EndGlobalSection 33 | GlobalSection(ExtensibilityGlobals) = postSolution 34 | SolutionGuid = {A4C550A6-7D81-4A2D-B5B4-ABBCBD76197E} 35 | EndGlobalSection 36 | EndGlobal 37 | -------------------------------------------------------------------------------- /OdbcError.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // OdbcError.h: interface for the OdbcError class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #if !defined(_ODBCERROR_H_) 26 | #define _ODBCERROR_H_ 27 | 28 | #include "IscDbc/JString.h" 29 | 30 | namespace OdbcJdbcLibrary { 31 | 32 | using namespace classJString; 33 | 34 | class OdbcConnection; 35 | 36 | class OdbcError 37 | { 38 | public: 39 | void setColumnNumber (int column, int row); 40 | void setRowNumber (int number); 41 | SQLRETURN sqlGetDiagField (int diagId, SQLPOINTER ptr, int bufferLength, SQLSMALLINT *stringLength); 42 | SQLRETURN sqlGetDiagRec (UCHAR *stateBuffer, SQLINTEGER *nativeCode, UCHAR *msgBuffer, int msgBufferLength, SWORD *msgLength); 43 | OdbcError(int code, const char *state, JString errorMsg); 44 | OdbcError(int code, int fbcode, const char *state, JString errorMsg); 45 | ~OdbcError(); 46 | 47 | OdbcConnection *connection; 48 | OdbcError *next; 49 | char sqlState[6]; 50 | JString msg; 51 | int nativeCode; 52 | int rowNumber; 53 | int columnNumber; 54 | }; 55 | 56 | }; // end namespace OdbcJdbcLibrary 57 | 58 | #endif // !defined(_ODBCERROR_H_) 59 | -------------------------------------------------------------------------------- /Install/Win32/Readme.txt: -------------------------------------------------------------------------------- 1 | Firebird ODBC Driver v3.0 Readme 2 | ========================================== 3 | 4 | o What's new 5 | o Installation 6 | o Configuration 7 | o Known Issues 8 | o Feedback 9 | 10 | 11 | What's New 12 | ---------- 13 | 14 | Welcome to the latest release of the Firebird ODBC driver v3.0. This release 15 | sees many significant advances in the driver. Notable changes are: 16 | 17 | o OOAPI implementation inside; 18 | o Windows dll is renamed to FirebirdODBC.dll to avoid compatibility issues; 19 | o Windows driver name is set to "Firebird ODBC Driver" for the same reasons; 20 | o This version is for Firebird 3.0 and later clients only. 21 | 22 | 23 | All the new features and fixes are documented in the release notes. 24 | 25 | 26 | o Installation 27 | -------------- 28 | 29 | Just click through the binary executable for a default install. More information 30 | is available in the Installation Readme, which viewable within the installation 31 | process. 32 | 33 | 34 | o Configuration 35 | --------------- 36 | 37 | Database connections are configured from the Database Administrator 38 | applet in the Control Panel. 39 | 40 | 41 | o Known Issues 42 | -------------- 43 | 44 | All known issues are listed here: https://github.com/FirebirdSQL/firebird-odbc-driver/issues 45 | All these issues seem to be minor and legacy. 46 | If you're an issue owner and/or you're interested in this fix, please update it and our team will get to work asap. 47 | 48 | 49 | Feedback 50 | -------- 51 | 52 | If you have any feedback (good or bad) please visit the Firebird 53 | ODBC driver project at GitHub: 54 | 55 | https://github.com/FirebirdSQL/firebird-odbc-driver 56 | 57 | The dedicated Firebird ODBC Driver v3.0 page is here: 58 | 59 | https://github.com/FirebirdSQL/firebird-odbc-driver/wiki 60 | 61 | NOTE: This is not a general support forum! It is for development issues only. 62 | This means that common questions about ODBC, SQL, or database access 63 | will probably be ignored. 64 | -------------------------------------------------------------------------------- /IscDbc/Types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * 16 | */ 17 | 18 | 19 | 20 | #ifndef __TYPE_H 21 | #define __TYPE_H 22 | 23 | namespace IscDbcLibrary { 24 | 25 | enum Type { 26 | Null, 27 | String, // generic, null terminated 28 | Char, // fixed length string, also null terminated 29 | Varchar, // variable length, counted string 30 | 31 | Short, 32 | Long, 33 | Quad, 34 | 35 | Float, 36 | Double, 37 | 38 | Date, 39 | TimeType, 40 | Timestamp, 41 | 42 | Asciiblob, // on disk blob 43 | Binaryblob, // on disk blob 44 | BlobPtr, // pointer to Blob object 45 | SqlTimestamp, // 64 bit version 46 | 47 | Boolean 48 | }; 49 | 50 | // Type Encoded Record Types 51 | 52 | #define TER_ENCODING_INTEL 1 // Intel encoding 53 | #define TER_FORMAT_VERSION_1 1 54 | #define TER_FORMAT TER_FORMAT_VERSION_1 55 | 56 | enum TerType { 57 | terNull, 58 | terString, // 32 bit count followed by string followed by null byte 59 | terUnicode, // 32 bit count followed by string followed by null character 60 | 61 | terShort, 62 | terLong, 63 | terQuad, 64 | 65 | terFloat, 66 | terDouble, 67 | 68 | terDate, 69 | terTime, 70 | terTimestamp, 71 | 72 | terBinaryBlob, // 32 bit length followed by blob 73 | }; 74 | 75 | 76 | struct FieldType { 77 | Type type; 78 | int length; 79 | int scale; 80 | }; 81 | 82 | 83 | }; // end namespace IscDbcLibrary 84 | 85 | #endif 86 | -------------------------------------------------------------------------------- /ResourceManagerSink.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2004 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // ResourceManagerSink.cpp: Resource Manager Sink class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #ifdef _WINDOWS 26 | 27 | #if _MSC_VER > 1000 28 | 29 | #define _ATL_FREE_THREADED 30 | #include 31 | extern CComModule _Module; 32 | #include 33 | #include 34 | 35 | #include "txdtc.h" 36 | #include "xolehlp.h" 37 | #include "txcoord.h" 38 | #include "transact.h" 39 | #include "TransactionResourceAsync.h" 40 | #include "ResourceManagerSink.h" 41 | 42 | namespace OdbcJdbcLibrary { 43 | 44 | ResourceManagerSink::ResourceManagerSink( void ) 45 | { 46 | tranResourceAsync = NULL; 47 | } 48 | 49 | ResourceManagerSink::~ResourceManagerSink( void ) 50 | { 51 | 52 | } 53 | 54 | STDMETHODIMP ResourceManagerSink::TMDown( void ) 55 | { 56 | if ( tranResourceAsync ) 57 | return tranResourceAsync->TMDown(); 58 | 59 | return E_UNEXPECTED; 60 | } 61 | 62 | void ResourceManagerSink::setResourceAsync( TransactionResourceAsync * ptResAsync ) 63 | { 64 | tranResourceAsync = ptResAsync; 65 | } 66 | 67 | }; // end namespace OdbcJdbcLibrary 68 | 69 | #endif // _MSC_VER > 1000 70 | 71 | #endif // _WINDOWS 72 | -------------------------------------------------------------------------------- /FBClient.Headers/firebird/impl/boost/preprocessor/seq/seq.hpp: -------------------------------------------------------------------------------- 1 | # /* ************************************************************************** 2 | # * * 3 | # * (C) Copyright Paul Mensonides 2002. 4 | # * Distributed under the Boost Software License, Version 1.0. (See 5 | # * accompanying file LICENSE_1_0.txt or copy at 6 | # * http://www.boost.org/LICENSE_1_0.txt) 7 | # * * 8 | # ************************************************************************** */ 9 | # 10 | # /* See http://www.boost.org for most recent version. */ 11 | # 12 | # ifndef FB_BOOST_PREPROCESSOR_SEQ_SEQ_HPP 13 | # define FB_BOOST_PREPROCESSOR_SEQ_SEQ_HPP 14 | # 15 | # include 16 | # include 17 | # 18 | # /* FB_BOOST_PP_SEQ_HEAD */ 19 | # 20 | # define FB_BOOST_PP_SEQ_HEAD(seq) FB_BOOST_PP_SEQ_ELEM(0, seq) 21 | # 22 | # /* FB_BOOST_PP_SEQ_TAIL */ 23 | # 24 | # if FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MWCC() 25 | # define FB_BOOST_PP_SEQ_TAIL(seq) FB_BOOST_PP_SEQ_TAIL_1((seq)) 26 | # define FB_BOOST_PP_SEQ_TAIL_1(par) FB_BOOST_PP_SEQ_TAIL_2 ## par 27 | # define FB_BOOST_PP_SEQ_TAIL_2(seq) FB_BOOST_PP_SEQ_TAIL_I ## seq 28 | # elif FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_MSVC() 29 | # define FB_BOOST_PP_SEQ_TAIL(seq) FB_BOOST_PP_SEQ_TAIL_ID(FB_BOOST_PP_SEQ_TAIL_I seq) 30 | # define FB_BOOST_PP_SEQ_TAIL_ID(id) id 31 | # elif FB_BOOST_PP_CONFIG_FLAGS() & FB_BOOST_PP_CONFIG_EDG() 32 | # define FB_BOOST_PP_SEQ_TAIL(seq) FB_BOOST_PP_SEQ_TAIL_D(seq) 33 | # define FB_BOOST_PP_SEQ_TAIL_D(seq) FB_BOOST_PP_SEQ_TAIL_I seq 34 | # else 35 | # define FB_BOOST_PP_SEQ_TAIL(seq) FB_BOOST_PP_SEQ_TAIL_I seq 36 | # endif 37 | # 38 | # define FB_BOOST_PP_SEQ_TAIL_I(x) 39 | # 40 | # /* FB_BOOST_PP_SEQ_NIL */ 41 | # 42 | # define FB_BOOST_PP_SEQ_NIL(x) (x) 43 | # 44 | # endif 45 | -------------------------------------------------------------------------------- /Test/Odbc.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Subschema Upgrade Utility 3 | * MODULE: Table.cpp 4 | * DESCRIPTION: Virtual Table class 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifdef _WIN32 10 | #include "stdafx.h" 11 | #endif 12 | 13 | #include 14 | #include "JString.h" 15 | #include "Odbc.h" 16 | 17 | int sw_verbose; 18 | int sw_noUpdate; 19 | 20 | FILE *logFile; 21 | 22 | int OdbcCheckCode (int retcode, SQLHANDLE handle, const char *string, int handleType) 23 | { 24 | /************************************** 25 | * 26 | * O d b c C h e c k C o d e 27 | * 28 | ************************************** 29 | * 30 | * Functional description 31 | * Test driver. Do something pretty ad hoc. 32 | * 33 | **************************************/ 34 | UCHAR sqlState [128], text [SQL_MAX_MESSAGE_LENGTH]; 35 | SDWORD nativeCode; 36 | SWORD textLength; 37 | int ok = false; 38 | char temp [256]; 39 | 40 | if (retcode == SQL_SUCCESS) 41 | return true; 42 | 43 | JString message = string; 44 | 45 | if (retcode == SQL_SUCCESS_WITH_INFO) 46 | message += " succeeded with information"; 47 | else 48 | message += " failed"; 49 | 50 | for (int n = 1; n < 10; ++n) 51 | { 52 | text [0] = 0; 53 | sqlState [0] = 0; 54 | int ret = SQLGetDiagRec (handleType, handle, n, sqlState, &nativeCode, 55 | text, sizeof (text) -1, &textLength); 56 | if (ret < 0 || ret == SQL_NO_DATA_FOUND) 57 | break; 58 | sprintf (temp, "\n%s (%s)", sqlState, text); 59 | message += temp; 60 | if (!strcmp ((char*)sqlState, "22005")) 61 | ok = true; 62 | else if (!strcmp ((char*)sqlState, "22008")) 63 | ok = true; 64 | else if (!strcmp ((char*)sqlState, "NA000")) 65 | ok = true; 66 | //break; 67 | } 68 | 69 | 70 | if (logFile) 71 | fflush (logFile); 72 | printf ("%s\n", message.getString()); 73 | 74 | #ifdef _WIN32 75 | OutputDebugString (message); 76 | OutputDebugString ("\n"); 77 | #endif 78 | 79 | if (retcode == SQL_SUCCESS_WITH_INFO) 80 | return true; 81 | 82 | return ok; 83 | } 84 | -------------------------------------------------------------------------------- /IscDbc/Values.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Values.cpp: implementation of the Values class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | // copyright (c) 1999 - 2000 by James A. Starkey for IBPhoenix. 26 | 27 | 28 | #include "IscDbc.h" 29 | #include "Values.h" 30 | #include "Value.h" 31 | 32 | 33 | #ifdef _DEBUG 34 | static char THIS_FILE[]=__FILE__; 35 | #endif 36 | 37 | namespace IscDbcLibrary { 38 | 39 | ////////////////////////////////////////////////////////////////////// 40 | // Construction/Destruction 41 | ////////////////////////////////////////////////////////////////////// 42 | 43 | Values::Values() 44 | { 45 | count = 0; 46 | values = NULL; 47 | } 48 | 49 | Values::~Values() 50 | { 51 | if (values) 52 | delete [] values; 53 | } 54 | 55 | void Values::alloc(int number) 56 | { 57 | if (number == count) 58 | { 59 | for (int n = 0; n < count; ++n) 60 | values [n].clear(); 61 | return; 62 | } 63 | 64 | if (values) 65 | delete [] values; 66 | 67 | count = number; 68 | values = new Value [count]; 69 | } 70 | 71 | void Values::clear() 72 | { 73 | for (int n = 0; n < count; ++n) 74 | values [n].clear(); 75 | } 76 | 77 | }; // end namespace IscDbcLibrary 78 | -------------------------------------------------------------------------------- /Test/LinkedList.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Virtual Data Manager 3 | * MODULE: LinkedList.h 4 | * DESCRIPTION: Generic Linked List 5 | * 6 | * copyright (c) 1997 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __LINKEDLIST_H 10 | #define __LINKEDLIST_H 11 | 12 | #define FOR_OBJECTS(type,child,list) {for (LinkedList *pos=(list)->getHead();(list)->more (pos);){ type child = (type) (list)->getNext (&pos); 13 | #define FOR_OBJECTS_BACKWARD(type,child,list) {for (LinkedList *pos=(list)->getTail();(list)->moreBackwards (pos);){ type child = (type) (list)->getPrior (&pos); 14 | #define END_FOR }} 15 | 16 | #ifndef NULL 17 | #define NULL 0 18 | #endif 19 | 20 | class LinkedNode; 21 | 22 | class LinkedList 23 | { 24 | public: 25 | void addressCheck (void *address); 26 | bool insertBefore (void *insertItem, void *item); 27 | 28 | LinkedList(); 29 | ~LinkedList(); 30 | 31 | void append (void *object); 32 | int appendUnique (void *object); 33 | void clear(); 34 | int count (); 35 | bool deleteItem (void* object); 36 | 37 | LinkedList *getHead (); 38 | bool more (LinkedList *node); 39 | void *getNext(LinkedList **node); 40 | 41 | LinkedList *getTail (); 42 | void *getElement (int position); 43 | void *getPrior(LinkedList**); 44 | bool isEmpty(); 45 | bool isMember (void *object); 46 | 47 | bool moreBackwards (LinkedList*); 48 | 49 | protected: 50 | 51 | LinkedNode *next, *prior; 52 | //void *object; 53 | }; 54 | 55 | class LinkedNode : public LinkedList { 56 | public: 57 | 58 | LinkedNode (void *object); 59 | ~LinkedNode(); 60 | 61 | void *object; 62 | }; 63 | 64 | inline LinkedList *LinkedList::getHead () 65 | { 66 | return (LinkedList*) next; 67 | } 68 | 69 | inline bool LinkedList::more (LinkedList *node) 70 | { 71 | return (node != NULL); 72 | } 73 | 74 | inline void *LinkedList::getNext(LinkedList **node) 75 | { 76 | void *object = ((LinkedNode*)(*node))->object; 77 | *node = (*node)->next; 78 | 79 | return object; 80 | } 81 | 82 | 83 | #endif 84 | 85 | -------------------------------------------------------------------------------- /IscDbc/Blob.h: -------------------------------------------------------------------------------- 1 | // Blob.h: interface for the Blob class. 2 | // 3 | ////////////////////////////////////////////////////////////////////// 4 | 5 | #if !defined(_BLOB_H_) 6 | #define _BLOB_H_ 7 | 8 | namespace IscDbcLibrary { 9 | 10 | enum enumTypeBlob { enTypeBlob = 1, enTypeClob, enTypeArray }; 11 | class Statement; 12 | 13 | class Blob 14 | { 15 | public: 16 | enumTypeBlob enType; 17 | virtual void addRef() = 0; 18 | virtual int release() = 0; 19 | virtual void clear() = 0; 20 | virtual void getBytes (int pos, int length, void *buffer) = 0; 21 | virtual void getBytesW (int pos, int length, void *buffer) = 0; 22 | virtual void getBinary (int pos, int length, void *buffer) = 0; 23 | virtual void getHexString (int pos, int length, void *buffer) = 0; 24 | virtual int length() = 0; 25 | virtual int getSegmentLength (int pos) = 0; 26 | virtual void putSegment (int length, const char *data, bool copyFlag) = 0; 27 | virtual void putLongSegment (int length, const char *data) = 0; 28 | virtual void *getSegment (int pos) = 0; 29 | virtual void writeBlob(char * sqldata) = 0; 30 | virtual void writeStreamHexToBlob(char * sqldata) = 0; 31 | virtual void writeBlob(char * sqldata, char *data, int length) = 0; 32 | virtual void writeStringHexToBlob(char * sqldata, char *data, int length) = 0; 33 | virtual void directCreateBlob( char * sqldata ) = 0; 34 | virtual void directOpenBlob(char * sqldata) = 0; 35 | virtual bool directFetchBlob(char *data, int length, int &lengthRead) = 0; 36 | virtual bool directGetSegmentToHexStr( char * bufData, int lenData, int &lenRead ) = 0; 37 | virtual void directWriteBlob( char *data, int length ) = 0; 38 | virtual void directCloseBlob() = 0; 39 | virtual int getOffset() = 0; 40 | 41 | virtual void bind(Statement *stmt, char * sqldata) = 0; 42 | virtual void attach(char * pointBlob, bool fetched, bool clear) = 0; 43 | virtual bool isBlob() = 0; 44 | virtual bool isClob() = 0; 45 | virtual bool isArray() = 0; 46 | }; 47 | 48 | }; // end namespace IscDbcLibrary 49 | 50 | #endif // !defined(_BLOB_H_) 51 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/About.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Sobre o Driver ODBC do Firebird 28 | 29 | 30 | 31 | 32 |

Sobre o Driver ODBC do Firebird

33 | 34 |

O driver ODBC suporta as versões para Windows, FreeBSD, Solaris e Linux do Firebird.

35 | 36 |

O driver ODBC do Firebird é composto dos seguintes arquivos:

37 | 38 |

IscDbc.dll

39 | 40 |

A Interface JDBC, provê acesso ao Firebird através da Firebird API

41 | 42 |

OdbcJdbc.dll

43 | 44 |

Implementa a API ODBC, provendo acesso ao Gerenciador ODBC. Pode ser usado sem a necessidade do Gerenciador ODBC.

45 | 46 |

OdbcJdbcSetup.dll

47 | 48 |

Instala (e Desinstala) o driver ODBC e configura o NFD (DSN)

49 | 50 |

OdbcJdbc.hlp

51 | 52 |

Arquivo de ajuda do driver ODBC do Firebird.

53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Test/JString.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PROGRAM: Virtual Data Manager 3 | * MODULE: JString.h 4 | * DESCRIPTION: Transportable flexible string 5 | * 6 | * copyright (c) 1997 - 2000 by James A. Starkey for IBPhoenix. 7 | */ 8 | 9 | #ifndef __JString_H 10 | #define __JString_H 11 | 12 | #define ALLOC_FUDGE 100 13 | 14 | /*** 15 | #ifndef __ENGINE_H 16 | #ifdef ENGINE 17 | typedef unsigned short WCHAR; 18 | #else 19 | #include 20 | typedef wchar_t WCHAR; 21 | #endif 22 | #endif 23 | ***/ 24 | 25 | class JString 26 | { 27 | public: 28 | void releaseBuffer (); 29 | char* getBuffer (int length); 30 | JString (const char *source, int length); 31 | int length(); 32 | bool equalsNoCase (const char *string2); 33 | static JString upcase (const char *source); 34 | static int findSubstring (const char *string, const char *sub); 35 | //JString& operator = (const WCHAR *wString); 36 | // JString (const WCHAR *wString); 37 | int hash (int tableSize); 38 | static int hash (const char *string, int tableSize); 39 | bool IsEmpty(); 40 | const char* after (char c); 41 | JString before (char c); 42 | //void set (int length, const char *stuff); 43 | bool operator == (const char *string); 44 | bool operator != (const char *stuff); 45 | 46 | //JString (const WCHAR *wString, int len); 47 | JString(); 48 | JString (const char *string); 49 | JString(const JString& stringSrc); 50 | ~JString(); 51 | 52 | void append (const char*); 53 | void setString (const char*); 54 | //void setString (const WCHAR *wString, int len); 55 | void setString (const char *source, int length); 56 | 57 | void Format (const char*, ...); 58 | const char *getString(); 59 | operator const char*(); 60 | JString& operator = (const char *string); 61 | JString& operator = (const JString& string); 62 | JString& operator+=(const char *string); 63 | JString& operator+=(const JString& string); 64 | 65 | friend JString operator + (const JString& string1, const char* string2); 66 | 67 | protected: 68 | void alloc (int length); 69 | void release(); 70 | 71 | char *string; 72 | }; 73 | 74 | 75 | #endif 76 | 77 | -------------------------------------------------------------------------------- /Builds/makefile.environ: -------------------------------------------------------------------------------- 1 | # Define ARCH in the calling makefile if you want to target a different architecture 2 | ifndef ARCH 3 | ARCH=$(shell uname -m) 4 | endif 5 | ifndef ODBCMANAGERDIR 6 | $(warning ARCH is $(ARCH)) 7 | 8 | ifeq ($(ARCH),x86_64) 9 | UNIXODBCDIR = $(shell if [ -d /usr/lib64/unixODBC ]; then echo /usr/lib64/unixODBC; else echo /usr/lib64; fi) 10 | else 11 | UNIXODBCDIR = $(shell if [ -d /usr/lib/unixODBC ]; then echo /usr/lib/unixODBC; else echo /usr/lib; fi) 12 | endif 13 | else 14 | UNIXODBCDIR = $(ODBCMANAGERDIR) 15 | endif 16 | 17 | ifndef ODBCMANAGER 18 | # ODBCMANAGER = $(shell if [ -f $(UNIXODBCDIR)/libodbc.so ]; then echo unixODBC; else echo iODBC; fi) 19 | ODBCMANAGER = $(shell if [ -f $(UNIXODBCDIR)/libiodbc.so ]; then echo iODBC; else echo unixODBC; fi) 20 | endif 21 | $(warning ODBCMANAGER is $(ODBCMANAGER) in $(UNIXODBCDIR)) 22 | 23 | ifdef FIREBIRD 24 | FBINCDIR = $(FIREBIRD)/include 25 | FBLIBDIR = $(FIREBIRD)/lib 26 | else 27 | ifdef INTERBASE 28 | FBINCDIR = $(INTERBASE)/include 29 | FBLIBDIR = $(INTERBASE)/lib 30 | else 31 | FBINCDIR = $(shell if [ -d /opt/firebird/include ]; then echo /opt/firebird/include; else echo nul; fi) 32 | FBLIBDIR = $(shell if [ -d /opt/firebird/lib ]; then echo /opt/firebird/lib; else echo nul; fi) 33 | endif 34 | endif 35 | 36 | ifeq (nul,$(FBINCDIR)) 37 | FBINCDIR = $(shell if [ -f /usr/include/ibase.h ]; then echo /usr/include; else echo nul; fi) 38 | endif 39 | ifeq (nul,$(FBLIBDIR)) 40 | ifeq ($(ARCH),x86_64) 41 | FBLIBDIR = $(shell if [ -f /usr/lib64/libfbclient.so ]; then echo /usr/lib64; else echo nul; fi) 42 | else 43 | FBLIBDIR = $(shell if [ -f /usr/lib/libfbclient.so ]; then echo /usr/lib; else echo nul; fi) 44 | endif 45 | endif 46 | 47 | ifeq (nul,$(FBINCDIR)) 48 | $(error FBINCDIR is undefined) 49 | else 50 | $(warning FBINCDIR is $(FBINCDIR)) 51 | endif 52 | 53 | ifeq (nul,$(FBLIBDIR)) 54 | $(error FBLIBDIR is undefined) 55 | else 56 | $(warning FBLIBDIR is $(FBLIBDIR)) 57 | endif 58 | 59 | # 60 | ISCDBCDIR = ../../IscDbc 61 | ODBCJDBCDIR = ../.. 62 | ODBCJDBCSETUPDIR = ../../OdbcJdbcSetup 63 | # 64 | 65 | -------------------------------------------------------------------------------- /IscDbc/EnvShare.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2004 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // 22 | // EnvShare.h: interface for the EnvShare class. 23 | // 24 | ////////////////////////////////////////////////////////////////////// 25 | 26 | #if !defined(_EnvShare_H_) 27 | #define _EnvShare_H_ 28 | 29 | #include 30 | #include "Connection.h" 31 | #include "ListParamTransaction.h" 32 | 33 | namespace IscDbcLibrary { 34 | 35 | class IscConnection; 36 | 37 | class EnvShare : public EnvironmentShare 38 | { 39 | public: 40 | EnvShare(); 41 | ~EnvShare(); 42 | 43 | void startTransaction(); 44 | int getCountConnection () { return countConnection; } 45 | void sqlEndTran(int operation); 46 | 47 | bool addConnection (IscConnection * connect); 48 | void removeConnection (IscConnection * connect); 49 | 50 | void clear(); 51 | void commit(); 52 | void rollback(); 53 | 54 | void addParamTransactionToList( CNodeParamTransaction &par ); 55 | bool findParamTransactionFromList( CNodeParamTransaction &par ); 56 | JString getDatabaseServerName(); 57 | 58 | public: 59 | IscConnection *connections[MAX_COUNT_DBC_SHARE]; 60 | int countConnection; 61 | Firebird::ITransaction* transactionHandle; 62 | 63 | ListParamTransaction *listTransaction; 64 | JString databaseServerName; 65 | }; 66 | 67 | }; // end namespace IscDbcLibrary 68 | 69 | #endif // !defined(_EnvShare_H_) 70 | -------------------------------------------------------------------------------- /IscDbc/Mutex.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by James A. Starkey for IBPhoenix. 16 | * 17 | * Copyright (c) 1999, 2000, 2001 James A. Starkey 18 | * All Rights Reserved. 19 | */ 20 | 21 | // Mutex.cpp: implementation of the Mutex class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | 25 | #ifdef _WINDOWS 26 | #include 27 | #endif 28 | 29 | #include "Mutex.h" 30 | 31 | namespace classMutex { 32 | 33 | ////////////////////////////////////////////////////////////////////// 34 | // Construction/Destruction 35 | ////////////////////////////////////////////////////////////////////// 36 | 37 | Mutex::Mutex() 38 | { 39 | #ifdef _WINDOWS 40 | InitializeCriticalSection (&mutex); 41 | #endif 42 | 43 | #ifdef _PTHREADS 44 | int ret = pthread_mutex_init (&mutex, NULL); 45 | #endif 46 | 47 | } 48 | 49 | Mutex::~Mutex() 50 | { 51 | #ifdef _WINDOWS 52 | DeleteCriticalSection( &mutex ); 53 | #endif 54 | 55 | #ifdef _PTHREADS 56 | int ret = pthread_mutex_destroy (&mutex); 57 | #endif 58 | } 59 | 60 | void Mutex::lock() 61 | { 62 | #ifdef _WINDOWS 63 | EnterCriticalSection (&mutex); 64 | #endif 65 | 66 | #ifdef _PTHREADS 67 | int ret = pthread_mutex_lock (&mutex); 68 | #endif 69 | } 70 | 71 | void Mutex::release() 72 | { 73 | #ifdef _WINDOWS 74 | LeaveCriticalSection (&mutex); 75 | #endif 76 | 77 | #ifdef _PTHREADS 78 | int ret = pthread_mutex_unlock (&mutex); 79 | #endif 80 | } 81 | 82 | }; // end namespace classMutex 83 | -------------------------------------------------------------------------------- /ChangeLog_v3.0: -------------------------------------------------------------------------------- 1 | * Update OdbcJdbcSetup.iss 2 | by @irodushka in https://github.com/FirebirdSQL/firebird-odbc-driver/pull/253 3 | 4 | * UK translation fix 5 | by @NickNevzorov in https://github.com/FirebirdSQL/firebird-odbc-driver/pull/250 6 | 7 | * Issue#240: makefile fix for aarm64 build 8 | by @irodushka in https://github.com/FirebirdSQL/firebird-odbc-driver/pull/241 9 | 10 | * Unstable operation with a large number of connections 11 | by @NickNevzorov in https://github.com/FirebirdSQL/firebird-odbc-driver/pull/237 12 | 13 | * EXECUTE STATEMENT changed for the worse in ODBC 3.0 14 | #233 opened by Fabio-LV 15 | 16 | * Abnormal termination in SQLFetch() 17 | #229 by fdcastel 18 | 19 | * OOAPI implemented 20 | Related to this entire release 21 | 22 | * Power BI problem, I think that is ODBC Driver. 23 | #216 by hamacker was closed on Feb 16 24 | 25 | * DECFLOAT not support 26 | #214 by Zeki-Gursoy was closed on Feb 21 27 | 28 | * Windows defender warns malware in installers.zip 29 | #212 by tomneko was closed on Jan 17 30 | 31 | * Installer does not overwrite older DLLs 32 | #211 by jabrugger was closed on Dec 28, 2023 33 | 34 | * Cannot link tables using MS Access 35 | #210 by jabrugger was closed on Dec 26, 2023 36 | 37 | * SUBSTRING in ODBC escape translations 38 | #207 by edwig was closed on Feb 12 39 | 40 | * ODBC - Firebird 4 affect-version: 3.0 Beta resolution: fixed 41 | #205 by Uzytkownik111 was closed on Feb 29 42 | 43 | * Configuration switch for WireCompression affect-version: 3.0 Beta enhancement priority: minor 44 | #204 by MartinKoeditz was closed on Sep 03 45 | 46 | * SQLTables error where table name is over 31 characters affect-version: 3.0 Beta resolution: fixed 47 | #202 by faridzidan was closed on Feb 29 48 | 49 | * SQLGetData with zero-length BLOB affect-version: 3.0 Beta resolution: fixed 50 | #201 by aafemt was closed on Feb 29 51 | 52 | * ODBC Statements do not respect the driver SQL_ATTR_MAX_ROWS setting. [ODBC74] affect-version: 2.0 53 | affect-version: 3.0 Beta priority: minor type: bug 54 | #73 by firebird-automations was closed Sep 4 2024 55 | -------------------------------------------------------------------------------- /Install/HtmlHelp.pt/html/Cursors.htm: -------------------------------------------------------------------------------- 1 | 23 | 24 | 25 | 26 | 27 | Cursores 28 | 29 | 30 | 31 | 32 |

Cursores

33 | 34 |

Atualmente no driver ODBC Firebird, os cursores do tipo “Dynamic” 35 | e “Keyset” são convertidos para cursores “Static”. 36 | Pois não é possível atualizar conjuntos (sets).

37 | 38 |

Para melhor performance, use cursores “ForwardOnly”.

39 | 40 |

Os operadores de leitura: (SQLFetch, SQLExtendedFetch, SQLScrollFetch), 41 | use SQL_ROWSET_SIZE e SQL_ATTR_ROW_ARRAY_SIZE.

42 | 43 |

Para uma melhor performance quando usar campos do tipo blob, use o operador 44 | SQLBindParameter (independente do tamanho do campo blob), pois será muito 45 | mais rápido que usar SQLPutData/SQLGetData.

46 | 47 |

Para maiores detalhes de como fazer isso e para outros tópicos 48 | avançados, por favor, olhe nos exemplos.

49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /OdbcJdbcSetup/ServiceTabBackup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * The contents of this file are subject to the Initial 4 | * Developer's Public License Version 1.0 (the "License"); 5 | * you may not use this file except in compliance with the 6 | * License. You may obtain a copy of the License at 7 | * http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl. 8 | * 9 | * Software distributed under the License is distributed on 10 | * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 11 | * express or implied. See the License for the specific 12 | * language governing rights and limitations under the License. 13 | * 14 | * 15 | * The Original Code was created by Vladimir Tsvigun for IBPhoenix. 16 | * 17 | * Copyright (c) 2005 Vladimir Tsvigun 18 | * All Rights Reserved. 19 | */ 20 | 21 | // ServiceTabBackup.h interface for the Service Backup class. 22 | // 23 | ////////////////////////////////////////////////////////////////////// 24 | #if !defined(_ServiceTabBackup_h_) 25 | #define _ServiceTabBackup_h_ 26 | 27 | namespace OdbcJdbcSetupLibrary { 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | // CServiceTabBackup dialog 31 | 32 | class CServiceTabBackup : public CServiceTabChild 33 | { 34 | enum 35 | { 36 | enIgnoreChecksums = 0x01, 37 | enIgnoreLimbo = 0x02, 38 | enMetadataOnly = 0x04, 39 | enNoGarbageCollect = 0x08, 40 | enOldDescriptions = 0x10, 41 | enNonTransportable = 0x20, 42 | enConvert = 0x40, 43 | enExpand = 0x80 44 | }; 45 | 46 | public: 47 | CServiceTabBackup(); 48 | ~CServiceTabBackup(); 49 | 50 | public: 51 | void updateData( HWND hDlg, BOOL bSaveAndValidate = TRUE ); 52 | bool onCommand( HWND hWnd, int nCommand ); 53 | void addParameters( CServiceClient &services ); 54 | void onStartBackup(); 55 | bool OnFindFileBackup( void ); 56 | bool createDialogIndirect( CServiceTabCtrl *parentTabCtrl ); 57 | bool buildDlgChild( HWND hWndParent ); 58 | 59 | public: 60 | ULONG backupParameters; 61 | JString blockingFactor; 62 | }; 63 | 64 | }; // end namespace OdbcJdbcSetupLibrary 65 | 66 | #endif // !defined(_ServiceTabBackup_h_) 67 | --------------------------------------------------------------------------------