Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
Stopped parse at committed
Patrick
2007-11-09 11:26:09.0
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.0
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.0
>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.0
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.0
>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.0
>> 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
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap