Recent content by Matt Ors

  1. M

    How to choose right NLS_LANG?

    Hello Please forgive me for asking here, since this is only slightly to DOA, but I believe you may be able to help. My application is compiled using Delphi 10.2 Tokyo. In code we use the default UnicodeString type. Users of my application set NLS_CHARACTERSET in their Oracle databases to...
  2. M

    What's the idea behind OracleToDelphiData() function?

    This is an extract from OracleToDelphiData, found in Oracle.pas. otInteger, otCursor, otCLOB, otBLOB, otBFile, otReference, otObject : begin L := PLongInt(buf)^; Result := L; end; In case of otInteger this...
  3. M

    AVs on 64-bit during high RAM usage

    Can't wait for the next 4.1.3.
  4. M

    AVs on 64-bit during high RAM usage

    Once 64-bit application allocates enough RAM that 32-bit addresses aren't enough, 64-bit addresses will be used. There are places in DOA source code, where 32-bit addresses are assumed - in other words, pointers are cut in half. Example (OracleData.pas): DataEvent(deFieldChange...
  5. M

    How to work with PL/SQL table of record type?

    Hello This is the SQL code I'm working with: CREATE TABLE TEST_TABLE ( COL_1 NUMBER(9), COL_2 NUMBER(3) ); CREATE OR REPLACE PACKAGE TEST_PKG AS TYPE r_testrecord_type IS RECORD (ID_1 NUMBER(9), ID_2 NUMBER(3)); TYPE t_testrecords_type IS TABLE OF r_testrecord_type INDEX BY...
  6. M

    How does CountAllRecords work?

    Ok. The issue was that a control I'm using required more configuration to make it support sequence numbers. Now the program calls CountQueryHits as you said.
  7. M

    How does CountAllRecords work?

    Hello I searched the sources for 'CountAllRecords' and I see that it's (FCountAllRecords) only accessed in function TOracleDataset.GetRecordCount and procedure TOracleDataset.SetRecNo. Then I searched for GetRecordCount and SetRecNo and all I see is the function declaration and implementation...
  8. M

    CachedUpdates without ROWID

    Any news on this feature? Best Regards Matt
  9. M

    Trouble with Locking, Checking and Refreshing in OnApplyRecord

    I wrote a procedure based on GetQueryVariables that works on fields instead and it works! Thank you.
  10. M

    Trouble with Locking, Checking and Refreshing in OnApplyRecord

    Hello All tables in my database have a column called ID with primary key on it and I need to use that column instead of ROWID. Some views with joined tables include that column and I'd like to be able to their refresh records without ROWID. Most of my DataSet queries look like this: SELECT *...
  11. M

    How to execute a query on TOracleDataset's insert/update/delete

    I don't know how to delete the topic. I found the answer! TOracleDataset.OnApplyRecord :)
  12. M

    How to execute a query on TOracleDataset's insert/update/delete

    Hello Is there a way I can execute a query in place of the TOracleDataset's standard insert, update, or delete behavior?
  13. M

    Unable to compile a console application in Delphi 10.2 Tokyo

    Hello I couldn't compile a Win32 console application due to errors. I used a conditional NONVISUAL define. I made the following changes to successfully pass compilation: In OracleVisual.pas, line 76: TColor = -$7FFFFFFF-1..$7FFFFFFF; In OracleCI.pas, line 20: Classes, SysUtils; In...
  14. M

    TOracleDirectPathLoader ORA-01722 Invalid Number

    I just created a similar table which had only varchar2 fields and loaded the data successfully! I found out that all data was shifted right by two columns! I don't know why does it work on another database but from now on I have something I can work with. I think this problem is solved now :)...
  15. M

    TOracleDirectPathLoader ORA-01722 Invalid Number

    Sure! Here is the table definition: -- Create table create global temporary table TMP_DATAMIGRATION ( id INTEGER, nazwa VARCHAR2(50), kraj VARCHAR2(50), id_wojewodztwo INTEGER, powiat VARCHAR2(50), gmina...
Back
Top