Comments (11)
@fanslead OK,感谢提醒!
from smartcode.
pg 数据库建议使用蛇形 (snake_case) 命名规范, 不要区分大小写
from smartcode.
pg 数据库建议使用蛇形 (snake_case) 命名规范, 不要区分大小写
昨天已经试过这种命名规范,执行sql依旧出现异常,只有用双引号包起来才能执行
from smartcode.
@fanslead 可能是列中有关键字吧,要不就是 smart sql 的问题了
from smartcode.
@fanslead @beginor SmartSql也只是转发SQL,我猜可能是pg命名的问题。
@fanslead 方便的话给我你的SQL脚本,以便于我今晚复现该问题,并给出修复方案。
from smartcode.
@Ahoo-Wang 数据库有问题? 更多的可能应该是 sql 的问题吧
from smartcode.
@beginor 命名有可能有问题,就是你刚刚说的啊。
from smartcode.
@Ahoo-Wang 这是sql脚本,我判断应该是pgsql的命名识别规则的原因。
sql.txt
from smartcode.
@fanslead ok,感谢,晚上我来check一下。
from smartcode.
可以看出SQL语句执行是会全部转成小写的,跟ORM是没有关系的。
下面这条是可以执行成功的,因为都是小写。 建议字段名不要使用大写以免造成不必要的麻烦。
from smartcode.
@Ahoo-Wang OK,我把表字段改成纯小写命名吧
from smartcode.
Related Issues (20)
- 希望能新增Schema这个类,用于生成分层 HOT 2
- 建议依赖注入的容器不要太凌乱了 HOT 1
- 关于 ETL 的几点建议 HOT 1
- 提交建议:希望像mybatis提供编写外部插件的功能 HOT 2
- mac 使用错误 No such file or directory HOT 2
- SmartCode是否可以加入联合主键的识别和代码生成?
- 什么时候升级到.netcore3.1啊? HOT 14
- 哪有教程教怎么写模板,好让我们贡献出来 HOT 1
- SmartCode文档太粗,能不能再细化
- 全大写数据库名称转换问题 HOT 1
- mysql中enum类型的字段,无法找到对应的CSharp类型。
- Partial类建议
- CSharp的Oracle模板中,关于Query的Sql语法错误
- Use .NET 5 as framework HOT 1
- 支持一对多,多对多的生成吗? HOT 4
- 升级 SmartCode 到 .Net 新版本的一些想法 HOT 7
- 更新mysql.data HOT 4
- SmartCode 版本不一致 HOT 1
- 在生成器中包含PG数据库的物化视图 (Materialized View)信息
- 老是报conda错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartcode.