Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  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 ACCESS
ALTER TABLE failed
Philippe Gervaise
2016-10-10 08:17:21.0
Hi,

When we try to execute the sql instruction "ALTER TABLE test MODIFY id varchar(10)" we got an exception :

Exception in thread "main" java.sql.SQLException: Failed to alter table test:Failed to get a string value from com.hxtt.f.e: DATE()
at com.hxtt.b.ak.a(Unknown Source)
at com.hxtt.sql.access.m.a(Unknown Source)
at com.hxtt.sql.access.r.a(Unknown Source)
at com.hxtt.sql.by.a(Unknown Source)
at com.hxtt.sql.by.a(Unknown Source)
at com.hxtt.sql.by.a(Unknown Source)
at com.hxtt.sql.am.a(Unknown Source)
at com.hxtt.sql.am.if(Unknown Source)
at com.hxtt.sql.am.a(Unknown Source)
at com.hxtt.sql.am.executeUpdate(Unknown Source)

The test database :

https://penelope827-my.sharepoint.com/personal/p_gervaise_penelope_fr/_layouts/15/guestaccess.aspx?guestaccesstoken=vHoDzlPAYf%2fVTQskuE8Ueawd5aEgPjSoPHMZ1ZELG5o%3d&docid=05139c61739d243bcb099bfbfc7229480&rev=1&expiration=2017-10-10T15%3a10%3a18.000Z

It's because the table "test" got a column named "date" with a default value : Date(). It's OK for INSERT but doesn't work on ALTER.

Thank you.
Re:ALTER TABLE failed
HXTT Support
2016-10-11 06:56:17.0
Supported. Please download the latest package.
Re:Re:ALTER TABLE failed
Philippe Gervaise
2016-10-21 00:57:04.0
Ok it works. Thank you.

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