informix

Connecting to Informix with NodeJS in MacOS - IBM Driver Issues

 ̄綄美尐妖づ 提交于 2019-12-11 06:15:07
问题 I am attempting to connect to my Informix database via NodeJS on MacOS , something I would have thought was reasonably simple. However, after Googling the issue, it seems that I am required to download a driver from IBM themselves, and this is the start of the problems... I have seen the ifx_db and informix npm libraries which give instructions to download the informix SDK from IBM themselves, however any link I click on refers me to this page: however I cannot seem to get to download the SDK

Informix .NET Provider and TransactionScope not rolling back

跟風遠走 提交于 2019-12-11 05:56:22
问题 I have a little proof-of-concept distributed transaction application that is doing a simple insert into two tables -- one a MS SQL Server table, the other an Informix Dynamic Server table. The problem comes when an exception is thrown. If I use the OLE DB driver for Informix, everything works fine -- both inserts roll back; if I use the .NET Data Provider for Informix, the Informix insert does not roll back. Does anyone have any ideas as to what is going on? In the code snippet, you will

Error compiling ACE report with multiple SELECT INTO statements

谁都会走 提交于 2019-12-11 05:49:31
问题 INFORMIX-SQL 4.10: OK, So after fixing the INTO TEMP syntax and using AS aliases, the ACE compiler complained about not having every single alias in a GROUP BY clause so I added it to each SELECT statement. However now I still get a GRAM ERR on the FORMAT statement (see updated code sample) database PAWNSHOP END define variable sfecha date variable efecha date end input prompt for sfecha using "DESDE FECHA: " prompt for efecha using "HASTA FECHA: " end output report to printer top margin 0

getGeneratedKeys returns an empty ResultSet

∥☆過路亽.° 提交于 2019-12-11 05:48:29
问题 In one sentence: Statement.getGeneratedKeys() is occasionally returning an empty ResultSet , and I'm trying to figure out why. Background: I am keeping track of users' requests regarding orders and some of their items. I have two tables, call them Header and Detail . To link the header and details properly, Header has a SERIAL column named request_id , which I use when inserting rows into Detail . This has been working fine for a long time (as far as I know), but recently I noticed that

How to pass an Informix Collection Parameter (LIST, SET, MULTISET) in c# through an ODBC Connection

雨燕双飞 提交于 2019-12-11 05:09:09
问题 I'm looking for a way to pass an Informix List Parameter in C#. I asked a previus question of How to pass a multi value parameter to Informix, but now I need to execute it from C#. The related question is here. In resume I have a procedure like this. CREATE PROCEDURE test_3(c LIST(CHAR(10) NOT NULL)) RETURNING CHAR(10) AS r; DEFINE r CHAR(10); FOREACH SELECT * INTO r FROM TABLE(c) RETURN r WITH RESUME; END FOREACH; END PROCEDURE; It works fine executing it in Aqua Data Studio.8.0.22 like this

Use MERGE statement in a stored procedure with Informix

被刻印的时光 ゝ 提交于 2019-12-11 05:08:48
问题 I have a stored procedure like this : http://tinyurl.com/pbk8qfb CREATE PROCEDURE PS_TAB_TSEN(NOMFIC VARCHAR(70), LIBSEN VARCHAR(35), CODAPPFOF VARCHAR(3)) DEFINE NUMINTNAV VARCHAR(10); BEGIN; LET NUMINTNAV = '0'; SELECT TO_CHAR(NUM_INT_NAV) INTO NUMINTNAV FROM TAB_INAV WHERE NOM_FIC = NOMFIC; MERGE INTO TAB_TSEN T USING (SELECT COD_SEN, LIBSEN AS LIB_SEN, CODAPPFOF AS COD_APP_FOF FROM TAB_TSEN WHERE COD_SEN = NUMINTNAV) AS S ON (T.COD_SEN = S.COD_SEN) WHEN MATCHED THEN UPDATE SET T.COD_SEN =

What's the fastest way to obtain the maximum value of a column in a table?

偶尔善良 提交于 2019-12-11 05:01:38
问题 INFORMIX-SQL 4.10.DC1 (SE Engine), on DOS 6.22, under Microsoft Virtual PC 2007, in Windows 7! EDIT: Looking for Jonathan Leffler's wisdom on this one! I have a child table called transaction and a parent table called customer. These tables are joined by customer.pk_id SERIAL = transaction.fk_id INTEGER. The transaction table has a clustered index on fk_id so that each customers transactions are physically grouped together with the data matching the index. The reason I chose the cluster index

iReport error SQLException: Database not selected yet

。_饼干妹妹 提交于 2019-12-11 04:54:36
问题 I'm working with iReport 5.6.0 to build some report templates. I'm having an issue when trying to retrieve some data from the DB. The DBMS is Informix and the procedure I'm doing is the following: 1. Add the Informix JDBC driver which I downloaded from Maven Central ( com.ibm.informix:jdbc ) 2. Create a datasource with the driver and the JDBC's URL. Test the connection and it's successful 3. In the Report query window I write a query and in the result pane (at the bottom) I get and error as

How can I find out which rows have been deleted?

泪湿孤枕 提交于 2019-12-11 04:49:35
问题 Informix-SQL 7.32 with SE engine: I have a customer who deleted several rows from an SE table. (I'm not using transaction logging or audit). The table has a serial column. I would like to create an Ace report to print the missing serial columns. I tried the following quick and dirty report, but it didn't work!.. can you suggest a better way? define variable next_id integer end select tbl_id from tbl order by tbl_id {I'm ordering tbl_id because all the rows are periodically re-clustered} end

How do I use --logLevel in Liquibase

随声附和 提交于 2019-12-11 04:48:43
问题 It doesn't seem to matter what I set it to, I don't get anything that looks like additional information: liquibase --url="jdbc:informix-sqli:INFORMIXSERVER=informix01_tcp;SQLH_TYPE=FILE;SQLH_FILE=/opt/informix/informix/etc/sqlhosts;DATABASE=wallet" --logLevel= debug --logFile=./lb.log --classpath=/opt/informix/informix/jdbc/lib/ifxjdbc.jar --changeLogFile ./test1ChangeLog.xml --includeTablespace=true generateChangeLog Starting Liquibase at Thu, 07 Mar 2019 12:30:34 GMT (version 3.6.3 built at