MYSQL的大写列名

问题描述

一个外部MysqL DB,我正在将其连接到ruby应用程序。所有列都是大写的,当我尝试查询某些内容时,但是当我尝试从对象中调用某些字段时,ruby给出了 String selector= "type == 'XCUIElementTypeImage' AND name == 'profilePlaceholder'"; $(MobileBy.iOSnspredicateString(selector)).click(); 错误

undefined method可以工作,但是当我执行user = User.first时会说user.firstname,因为我得到的用户对象的名字列为undefined method firstname。如何使它成为区分大小写的查询,这样我可以FirsTNAMEuser.firstname起作用?

我尝试将user.FirsTNAME添加到我的ActiveRecord::ConnectionAdapters::sqlServerAdapter.lowercase_schema_reflection = true中,但仍然没有变化。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)