facebook

generating SQL (or Preview) incorrectly using brackets []

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #259797 Reply

    dugshnay
    Member

    This is MyEclipse 5.0 (build 20060810-5.0.1-GA) with Sybase (11.5) using jconnect 5.5 or 6.0 drivers.

    This does not occur with MyEclipse 4.1 using the same database and drivers.

    When choosing a table in the database explorer and selecting Generate->Select Statement, the generated statement is constructed with square brackets surrounding the database name. This results in a syntax error while trying to execute.

    I can remove these in generated sql, but it also affects the “Preview” panel, in which I haven’t been able to find a way to work around.

    Is this a bug, or is there something I can change/configure that I have not yet found that will make this work properly?

    Thanks.

    Doug

    #259800 Reply

    dugshnay
    Member

    Just for reference, here’s an example:

    select
    task_name
    from
    [DB_ONE].dbo.task

    The [ breaks things.

    #259801 Reply

    Haris Peco
    Member

    Doug,

    We have tested on sybase 12.5 and this query works fine in this database.Syntax [] is introduced, because problems with special character in catalog name (for example, catalog ‘CAT-MY’).I will file PR for this and we will fix it in next release

    Thank you for feedback and sorry for the inconvenience caused.

    Best
    Peco

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: generating SQL (or Preview) incorrectly using brackets []

You must be logged in to post in the forum log in