Search found 10 matches

by CompsSQL
13.08.2014, 17:29
Forum: ZeosLib 7.2 Forum
Topic: DbLibMetadata
Replies: 6
Views: 1048

Re: DbLibMetadata

your solution works for me too.
by CompsSQL
19.07.2014, 07:43
Forum: ZeosLib 7.2 Forum
Topic: DbLibMetadata
Replies: 6
Views: 1048

Re: DbLibMetadata

in ZDbcDbLibMetadata.pas in "function TZSybaseDatabaseMetadata.UncachedGetTables" in the "with GetStatement.ExecuteQuery" statement, a "format" is used the last parameter of that format statement is : ComposeObjectString(TableTypes, '"') the function declaration fo...
by CompsSQL
12.05.2014, 17:41
Forum: ZeosLib 7.2 Forum
Topic: Oracle false complex query error
Replies: 3
Views: 1446

Re: Oracle false complex query error

as far as I can tell, underscores are allowed in TableNames in all databases, but the %-sign is not (not even if you escape the table name with brackets) So instead of changing the "like" to "=", I opted for a more subtle solution : in ZDbcMetadata.pas, in TZAbstractDatabaseMetad...
by CompsSQL
03.05.2014, 06:04
Forum: ZeosLib 7.2 Forum
Topic: Oracle false complex query error
Replies: 3
Views: 1446

Oracle false complex query error

I have an Oracle database that contains 2 tables : - T_ALERT - T_ALERT_ENVIRONMENT The first field in both tables is identical : ID (integer) When I perform this query : select * from SYAL.T_ALERT then I get the following error : cannot update a complex query with more then one table. This is obviou...
by CompsSQL
21.04.2014, 18:50
Forum: ZeosLib 7.2 Forum
Topic: DbLibMetadata
Replies: 6
Views: 1048

DbLibMetadata

I think there is a bug in ZDbcDbLibMetadata.pas (revision 3115) in TZSybaseDatabaseMetadata.UncachedGetTables : a call is made to ComposeObjectString with only 2 parameters : ComposeObjectString(TableTypes, '"')) I think this should be : ComposeObjectString(TableTypes, 'null', '"') and the...
by CompsSQL
14.03.2012, 16:40
Forum: ZeosLib 7.0 Beta Forum
Topic: Sybase sp_help - first ResultSet, not last
Replies: 1
Views: 527

Sybase sp_help - first ResultSet, not last

the Sybase sp_help procedure returns multiple resultsets, but the actual reply is in the very first resultset. In SQL Advantage (the Sybase client program to execute queries), you get for example this answer : (373 rows affected) (0 rows affected) (0 rows affected) (0 rows affected) (return status =...
by CompsSQL
14.03.2012, 16:26
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Oracle Prefetch Rows
Replies: 5
Views: 806

I need this only once for only 1 specific Oracle DB, so your solution is more than enough for me. Thank you.
(sorry for the probably silly question, I am still a little new to Zeos)
by CompsSQL
11.03.2012, 09:38
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] Oracle Prefetch Rows
Replies: 5
Views: 806

[patch_done] Oracle Prefetch Rows

When performing a "select *" query on an Oracle Table with a huge number of fields, I noticed that the query was really slow (several minutes). After contacting our DBA's, they told me to set the Prefetch Rows to a higher number. I could not find this option in ZeosLib (but I might be over...
by CompsSQL
04.03.2012, 19:50
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] passwords with ; in them
Replies: 6
Views: 852

Agreed. My \; approach was not that good.
I like your #9 solution.
Thanks for the fast reply and excellent idea.
Looking forward to seeing it implemented.
by CompsSQL
03.03.2012, 13:17
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] passwords with ; in them
Replies: 6
Views: 852

[patch_done] passwords with ; in them

one of our databases has a db-account that has a ; in the password (I am not the DBA and can not change this password) As ; is used as a separator to pass information between the zeos objects, the password gets truncated at the ; sign. To solve this, I have changed some code in zsysutils.pas (revisi...