mirror of
https://github.com/github/rails.git
synced 2026-01-31 01:08:19 -05:00
Sybase: hide timestamp columns since they're inherently read-only. Closes #7716.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Sybase: hide timestamp columns since they're inherently read-only. #7716 [Mike Joyce]
|
||||
|
||||
* Oracle: overflow Time to DateTime. #7718 [Michael Schoen]
|
||||
|
||||
* PostgreSQL: don't use async_exec and async_query with postgres-pr. #7727 [flowdelic]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user