-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delimited identifiers are surrounded by double-quotes. A delimited identifier casing is kept the same. Whereas as regular identifier is not case-sensitive and will always be represented as upper case.
- Loading branch information
1 parent
3d1c610
commit 0d5b19e
Showing
18 changed files
with
134 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
DROP TABLE foo | ||
-- error: vsql.SQLState42P01: no such table: foo | ||
-- error: vsql.SQLState42P01: no such table: FOO | ||
|
||
CREATE TABLE foo (a FLOAT) | ||
DROP TABLE foo | ||
DROP TABLE foo | ||
-- msg: CREATE TABLE 1 | ||
-- msg: DROP TABLE 1 | ||
-- error: vsql.SQLState42P01: no such table: foo | ||
-- error: vsql.SQLState42P01: no such table: FOO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
SELECT * FROM foo | ||
-- error: vsql.SQLState42P01: no such table: foo | ||
-- error: vsql.SQLState42P01: no such table: FOO | ||
|
||
CREATE TABLE foo (a FLOAT) | ||
INSERT INTO foo (a) VALUES (1.234) | ||
SELECT * FROM foo | ||
-- msg: CREATE TABLE 1 | ||
-- msg: INSERT 1 | ||
-- a: 1.234 | ||
-- A: 1.234 | ||
|
||
CREATE TABLE foo (a FLOAT) | ||
CREATE TABLE "Foo" ("a" FLOAT) | ||
INSERT INTO FOO (a) VALUES (1.234) | ||
INSERT INTO "Foo" ("a") VALUES (4.56) | ||
SELECT * FROM Foo | ||
SELECT * FROM "Foo" | ||
-- msg: CREATE TABLE 1 | ||
-- msg: CREATE TABLE 1 | ||
-- msg: INSERT 1 | ||
-- msg: INSERT 1 | ||
-- A: 1.234 | ||
-- a: 4.56 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
SELECT 1 | ||
-- col1: 1 | ||
-- COL1: 1 | ||
|
||
SELECT 1.23 | ||
-- col1: 1.23 | ||
-- COL1: 1.23 | ||
|
||
select 789 | ||
-- col1: 789 | ||
-- COL1: 789 | ||
|
||
Select 'hello' | ||
-- col1: hello | ||
-- COL1: hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// indentifier.v contains logic for normalzing and using identifiers (such as | ||
// table and column names). | ||
|
||
module vsql | ||
|
||
fn identifier_name(s string) string { | ||
if s.len > 0 && s[0] == `"` { | ||
return s[1..s.len - 1] | ||
} | ||
|
||
return s.to_upper() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters