# Cannot get hibernate to update string column in table

**URL:** <https://discourse.hibernate.org/t/cannot-get-hibernate-to-update-string-column-in-table/8612>\
**Category:** Hibernate ORM\
**Created:** [November 27, 2023, 10:36am UTC](https://discourse.hibernate.org/t/cannot-get-hibernate-to-update-string-column-in-table/8612 "2023-11-27T10:36:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasa](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@thomasa](https://discourse.hibernate.org/u/thomasa)\
**Post date:** [November 27, 2023, 10:36am UTC](https://discourse.hibernate.org/t/cannot-get-hibernate-to-update-string-column-in-table/8612/1 "2023-11-27T10:36:06Z")

</div>

I’m using hibernate.hbm2ddl.auto=update to change a varchar column to another length but it does not work with hibernate 6.3.1. I’ve debugged the hibernate code and I think the method IsStringType(int typeCode) in org.hibernate.type.SQLTypes is wrong. It always return false. The source code for this method in hibernate 6.4.0 is the same. Am I wrong or is this a bug?

Regards,  
Thomas

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [November 27, 2023, 6:01pm UTC](https://discourse.hibernate.org/t/cannot-get-hibernate-to-update-string-column-in-table/8612/2 "2023-11-27T18:01:54Z")

</div>

Please try to create a reproducer with our test case template ([https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java](https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java)) and if you are able to reproduce the issue, create a bug ticket in our issue tracker([https://hibernate.atlassian.net](https://hibernate.atlassian.net)) and attach that reproducer.
