Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.0.005
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 4.0.005
  HXTT DBF 7.0.005
  HXTT Excel 6.0.005
  HXTT Paradox 7.0.005
  HXTT PDF 1.1.005
  HXTT Text(CSV) 7.0.005
  HXTT Word 1.0.003
  HXTT XML 3.0.005
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 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 © 2003-2018 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap