# Timestamp columns in Sybase

**URL:** <https://www.ruby-forum.com/t/timestamp-columns-in-sybase/87293>\
**Category:** Rails\
**Created:** [March 1, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/timestamp-columns-in-sybase/87293 "2007-03-01T14:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ba8739/32.png) [@Mike\_J](https://www.ruby-forum.com/u/Mike_J)\
**Post date:** [March 1, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/timestamp-columns-in-sybase/87293/1 "2007-03-01T14:39:31Z")

</div>

On Sybase DBs, the timestamp column cannot be updated with a query,  
the server does it automatically([http://www.sybase.com/detail](http://www.sybase.com/detail)?  
id=20316). Since ActiveRecord writes all attributes back to the  
database on every call to #save, the transaction error. To get by I  
edited the default sybase\_adapter to not include timestamp types when  
it returns the column listing, thus eliminating that attribute all  
together. But now if I want to read that attribute, I’m out of luck.

Has anyone else run across this issue? Is there some way I can fix the  
problem without modifying the sybase\_adapter?
