diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/sybase_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sybase_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb b/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb index 45b5d0bc96..c43e9435b4 100644 --- a/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sybase_adapter.rb @@ -242,8 +242,8 @@ module ActiveRecord SELECT col.name AS name, type.name AS type, col.prec, col.scale, col.length, col.status, obj.sysstat2, def.text FROM sysobjects obj, syscolumns col, systypes type, syscomments def - WHERE obj.id = col.id AND col.usertype = type.usertype AND col.cdefault *= def.id - AND obj.type = 'U' AND obj.name = '#{table_name}' ORDER BY col.colid + WHERE obj.id = col.id AND col.usertype = type.usertype AND type.name != 'timestamp' + AND col.cdefault *= def.id AND obj.type = 'U' AND obj.name = '#{table_name}' ORDER BY col.colid SQLTEXT @logger.debug "Get Column Info for table '#{table_name}'" if @logger @connection.set_rowcount(0) |