Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 6.0.061
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 3.0.061
  HXTT DBF 6.0.064
  HXTT Excel 5.0.064
  HXTT Paradox 6.0.061
  HXTT Text(CSV) 6.0.062
  HXTT XML 2.0.061
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 Beijing 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
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap