Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
Stopped parse at committed
Patrick
2007-11-09 11:26:09
I'm trying to wrap a legacy database using HXTT DBF. One of the tables has a column titled "committed". I'm guessing that the HXTT DBF driver is bombing out because it is treating committed as a reserved word. Can this be properly quoted somehow to avoid this?

I'm using the drivers from 02-Nov-2007.
more details
Patrick
2007-11-09 11:27:58
I forgot to mention the exact error:

SQL Error: 172032, SQLState: 2A000
Re:Re:Stopped parse at committed
HXTT Support
2007-11-09 17:36:24
>One of the tables has a column titled "committed".
>because it is treating committed as a reserved word.
Yeah You should use [], or "" to enclosing that column.
For instance, select "committed" from aTable.
Re:Re:Re:Stopped parse at committed
Patrick
2007-11-14 15:44:56
For the record since I am using Hibernate as ORM wrapper the way to quote this is to use ` around the column mapping. For example:

@Id @Column(name="`itmlockey`")
public Long getPK()
{
return pk;
}
public void setPK(Long pk)
{
this.pk = pk;
}
Re:Re:Re:Re:Stopped parse at committed
HXTT Support
2007-11-20 05:45:13
>the way to quote this is to use ` around the column mapping.
You can use ". Are you using HXTT's hibernate support package at http://www.hxtt.com/hibernate.html?
Re:Re:Re:Re:Re:Stopped parse at committed
Patrick
2007-11-21 10:00:59
>> the way to quote this is to use ` around the column mapping.
> You can use ". Are you using HXTT's hibernate support package at
> http://www.hxtt.com/hibernate.html?

I am using the hibernate support package. I'm using ` because I read that if you use the backtick hibernate will substitute database dependent quoting at runtime (presumably dependent on the dialect chosen). Since I'm wrapping a legacy database that I cannot change it would be fine to use " but I want to get in the habit of making the hibernate data layer as database independent as possible.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap