# Generated alter table script when column is not null - possible bug

**URL:** <https://forums.toadworld.com/t/generated-alter-table-script-when-column-is-not-null-possible-bug/30625>\
**Category:** Toad for Oracle & DevOps Toolkit\
**Created:** [August 7, 2014, 3:19am UTC](https://forums.toadworld.com/t/generated-alter-table-script-when-column-is-not-null-possible-bug/30625 "2014-08-07T03:19:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmackovik](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@rmackovik](https://forums.toadworld.com/u/rmackovik)\
**Post date:** [August 7, 2014, 3:19am UTC](https://forums.toadworld.com/t/generated-alter-table-script-when-column-is-not-null-possible-bug/30625/1 "2014-08-07T03:19:41Z")

</div>

Hello,  
when i want to modify column size (eg. VARCHAR2(5) to VARCHAR2(10)), wrong alter table script is generated if column is already NOT NULL.

In editor type table name, describe table using F4, click “alter selected table” icon, change size of any column that is already NOT NULL.

Generated script looks like

ALTER TABLE TABLE\_OWNER.TABLE\_NAME  
MODIFY(COLUMN\_NAME VARCHAR2(10 BYTE) NOT NULL)  
/

Running this script leads to ORA-01442 error (column to be modified to NOT NULL is already NOT NULL)

I presume that this is a bug. Toad version is 12.5.0.99
