Question James Casazza · Feb 13 Query Updates with Escape logic to the apostrophe (i.e. double-up the single quote character) causing maxlength error. When I use Escape logic when inserting or updating Oracle Table I'm getting Max-Length exceeded error. With the original value the length is good but after I add Escape Logic, it causes value to be greater than max-length. The original value was "I visited O'Brien before heading out of town." and after added Escape logic it was "I visited O''Brien before heading out of town." Max-Length is 45. INSERT INTO MyText (text) VALUES ('I visited O''Brien before heading out of town.') /\ right here Any ideas around this? #SQL #InterSystems IRIS 0 5 0 220
Question James Casazza · Jan 23 %Executing UPDATE/INSERT SQL. Statement with Parameters - How to send Dates/Timestamps with TO_DATE/TO_TIMESTAMP Tring to Performing following script in IRIS but do not know how to format Date. Normally, I would use TO_DATE or TO_TIMESTAMP in the actual queue statement below, but since I'm using Prepared Statements, I do not know how to format date in 'values' that is being used in the %Execute. It generates errors. I'm updating an Oracle Database via a SQL JDBC Gateway Connection. Does anyone know how to pass in Dates? Books Table definition #JDBC #SQL #InterSystems IRIS 0 5 0 236
Question James Casazza · Aug 23, 2021 Data Values being Rounded to 2 Decimal places with Linked Oracle Table with NUMBER Data Types After linking in Oracle Table with Field Column's Data Types of NUMBER, my updates into these table fields are resulting in data that is being rounded to 2 decimal places. I insert a record with 1234.1234 and 1234.12 is stored. It appears Cache xDBC might be manipulating my values prior to sending to Oracle. Is there a setting or system parameter that is controlling this? If so, is there a way to relax this from occurring so the values I send are being stored in Oracle with the same values? #Compatibility #Data Import and Export #ObjectScript #SQL #Caché 0 10 0 555
Question James Casazza · Nov 12, 2020 Can the $SYSTEM.SQL.DDLImport ClassMethod import Class Objects In Cache WIndows environment: Trying to use the $SYSTEM.SQL.DDLImport to import XML File that has ClassMethods, no SQL Table, but it doesn't appear to be working. I can use this ClassMethod to create SQL Tables. The manual method I have been using is to go into Cache Management Portal, Classes, Import. I create an XML file first, then run the following to import but get no errors. Any ideas? #ObjectScript #Relational Tables #XML #Caché 0 2 0 233
Question James Casazza · May 13, 2020 Accessing External Database via JDBC in Cache Object Script Is it possible to access (read, write) to an external Oracle database via Cache SQL Gateway using JDBC in Cache Object Script? I am currently using ODBC successfully but wanted to see if JDBC was an option too. If it is possible, does anyone have a basic Object Script example(s) that I can review? #JDBC #ObjectScript #Caché 0 9 0 895