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

Quote randomNumber column in PostgreSQL schema #9509

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonathanhefner
Copy link

I've opened this PR because it is a point of frustration when implementing tests for new frameworks, but I've marked it as draft because the change may be too breaking.

The test specs say that the World table has an id column and randomNumber column (note the camelCasing). Indeed, the PostgreSQL schema uses randomNumber in its CREATE TABLE statement. However, the CREATE TABLE statement does not quote the column name, so PostgreSQL treats the name as if it were lowercase.

Also note that the PostgreSQL schema has CREATE TABLE World and CREATE TABLE "World" statements. Presumably, this is because the former actually creates a world table because it too is not quoted. (Whereas the latter actually creates a World table.)

This commit modifies the CREATE TABLE "World" statement to quote the randomNumber column so that its camel case is preserved.

The [test specs][] say that the `World` table has an `id` column and
`randomNumber` column (note the camelCasing).  Indeed, the
[PostgreSQL schema][] uses `randomNumber` in its `CREATE TABLE`
statement.  However, the `CREATE TABLE` statement does not quote the
column name, so PostgreSQL treats the name as if it were lowercase.

Also note that the PostgreSQL schema has `CREATE TABLE World` _and_
`CREATE TABLE "World"` statements.  Presumably, this is because the
former actually creates a `world` table because it too is not quoted.
(Whereas the latter actually creates a `World` table.)

This commit modifies the `CREATE TABLE "World"` statement to quote the
`randomNumber` column so that its camel case is preserved.

[test specs]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview
[PostgreSQL schema]: https://github.com/TechEmpower/FrameworkBenchmarks/blob/ddd09520c10926c0e2c73a005b1f79f5a68142a8/toolset/databases/postgres/create-postgres.sql
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.

1 participant