---
title: "表中存在type列名问题"
author: "yinter"
date: "2008-01-30T16:00:58Z"
tags: []
slug: "type"
draft: false
lastmod: "2008-01-30T16:00:58Z"
id: 160442
url: "https://yinter.iteye.com/blog/160442"
---

今天发现个很BT的问题，在开发中某表有一个列取名为type，在用:select指定查询列时，总报错，提示：undefined method `empty?' for 0:Fixnum，搞了半天才发现是这个字段名的问题，晕死，把他改为别的名称就OK了！