Search found 41 matches
- 01.07.2011, 14:29
- Forum: 6.6 - stable
- Topic: How to get the sql with parameters replaced?
- Replies: 4
- Views: 809
- 01.07.2011, 13:08
- Forum: 6.6 - stable
- Topic: How to get the sql with parameters replaced?
- Replies: 4
- Views: 809
How to get the sql with parameters replaced?
Hello!
The TZQuery/TZReadOnlyQuery provides a method that returns the SQL with the parameter values replaced?
Josimar
The TZQuery/TZReadOnlyQuery provides a method that returns the SQL with the parameter values replaced?
Josimar
- 09.05.2011, 18:25
- Forum: 6.6 - stable
- Topic: Two Oracle Connections
- Replies: 2
- Views: 841
- 03.05.2011, 20:09
- Forum: 6.6 - stable
- Topic: problem with order by (param type: string)
- Replies: 3
- Views: 1833
Hello railgun3r! To order queries with TZQuery I prefer to use the properties SortedFields and SortType . For example, a query with the following: SELECT CODE, NAME, BIRTHDAY, ID FROM PERSONS WHERE NAME LIKE '%Osama%' To sort the ascending the NAME field, do the following: ZQuery1.SortedFields := 'N...
- 29.04.2011, 19:39
- Forum: 6.6 - stable
- Topic: Two Oracle Connections
- Replies: 2
- Views: 841
Two Oracle Connections
Hello! I have an Oracle server with various schemes. Two of them are called: JOE FRANK On the client computer I installed the Oracle Instant Client and TNSNAMES.ORA configured as follows: MYORA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = dev.orcl.com)(PORT = 1521)) ) (CONNECT...
- 25.01.2011, 11:19
- Forum: 6.6 - stable
- Topic: unsorting TZQuery breaks Bookmarks
- Replies: 7
- Views: 1220
Hello marsupulami! Exactly! For you to compare Bookmarks of sorted Query's you need to do the type casting of pointer to PInteger to scroll through the records to find, as you did in the previous example. This technique may consume too much processing on queries with a large amount of results. I do ...
- 19.01.2011, 16:30
- Forum: 6.6 - stable
- Topic: Cannot update a complex query with more then one table
- Replies: 5
- Views: 2504
Hello! Primarily I want to apologize for the inconvenience of the previous posts. I'm starting to develop in Oracle + Delphi and I'm finding some difficulties. In this case mentioned I assumed to be a failure because Zeos had sought help in the Oracle fóruns and according to the responses I received...
- 18.01.2011, 19:13
- Forum: 6.6 - stable
- Topic: unsorting TZQuery breaks Bookmarks
- Replies: 7
- Views: 1220
Hello marsupilami! I understand that when you order the result, the Query lose your references and create new references. Once I have problems to compare the bookmarks of a query with a structure previously stored pointers. I got satisfactory result when I tried the the pointer as a pointer to integ...
- 18.01.2011, 16:29
- Forum: 6.6 - stable
- Topic: Cannot update a complex query with more then one table
- Replies: 5
- Views: 2504
Hello! I have some more useful information about this error. When told explicitly the table schema in SQL, the TZOracleDatabaseMetadata.UncachedGetColumns method receives information from the scheme in the parameter SchemaPattern : SELECT * FROM RYO.EXAMPLE One option is to check if the variable is ...
- 17.01.2011, 20:53
- Forum: 6.6 - stable
- Topic: unsorting TZQuery breaks Bookmarks
- Replies: 7
- Views: 1220
Hello marsupilami! Use TList structure to store Pointer types and use GotoBookmark method: List := TList.Create; try ZQuery1.Open; ZQuery1.First; ZQuery1.SortedFields := 'ID'; while not ZQuery1.Eof do begin List.Add(ZQuery1.Bookmark); ZQuery1.Next; end; ZQuery1.SortedFields := ''; for x := 0 to List...
- 14.01.2011, 13:14
- Forum: 6.6 - stable
- Topic: Cannot update a complex query with more then one table
- Replies: 5
- Views: 2504
Probable Solution
I found an apparent solution to the problem. The UncachedGetColumns method in TZOracleDatabaseMetadata class in ZDbcOracleMetadata unit uses the ALL_TAB_COLUMNS VIEW in the SYS SCHEMA. According to a handbook for the Oracle DBA, VIEWS that start with "ALL_" "accessible by all users, g...
- 12.01.2011, 12:55
- Forum: 6.6 - stable
- Topic: Cannot update a complex query with more then one table
- Replies: 5
- Views: 2504
Hello! Debugging the code Zeos I found some useful information. The method TZOracleDatabaseMetadata.UncachedGetColumns in ZDbcOracleMetadata unit runs on an SQL statement that fetches the information table in the SYS Schema: SQL := 'SELECT NULL, OWNER, TABLE_NAME, COLUMN_NAME, NULL, DATA_TYPE,' + ' ...
- 11.01.2011, 17:34
- Forum: 6.6 - stable
- Topic: Cannot update a complex query with more then one table
- Replies: 5
- Views: 2504
Cannot update a complex query with more then one table
Hello! I have an Oracle database with three users/schemas. The three schemes have similar structures. I'll call them Joe, MAX and RYO. My application access the database using the component TZConnection . In particular form have a TZQuery with a simple SQL: SELECT * FROM EXAMPLE The user clicks the ...
- 03.01.2011, 13:33
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: ExecSQL + Oracle + OCI_SUCCESS_WITH_INFO
- Replies: 12
- Views: 21813
- 03.12.2010, 18:42
- Forum: 6.5.1 (alpha) - 6.6.x (beta)
- Topic: CREATE OR REPLACE FUNCTION with ZSQLProcessor
- Replies: 2
- Views: 1919