Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为PG的名称获取添加引号 #172

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

Perdixky
Copy link
Contributor

当我从SQLite切换为PostgreSQL后,发现创建table时报错,所以将这里添加上了冒号来符合PostgreSQL标准

@Jacyking
Copy link
Collaborator

B1JEU1OTXQ8G8 _APUGW{H8
有例子吗 官方create table 没有引号

@Perdixky
Copy link
Contributor Author

image
这里说明了,如果不加引号的话会导致关键字和标识符冲突

@Jacyking
Copy link
Collaborator

嗯嗯 关键字需要加引号这个我倒是知道的

@Perdixky
Copy link
Contributor Author

所以我想既然在SQLite中使用了反引号来表示关键字,就应该在PostgreSQL中也使用引号👍

@Jacyking Jacyking merged commit e2785ce into qicosmos:master Aug 13, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants