-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SQL comments when func or table is pre-configured (#1045)
When a SQL comment is set on a table or a function to customize tilejson, and that tbl/func is pre-configured as part of the config file, the comment was silently ignored. Now both table and function cases are handled correctly. Also, update docs to not include function parameters - makes SQL example a bit simpler. Thanks @jjcfrancisco for reporting! Fixes: #1044
- Loading branch information
Showing
18 changed files
with
151 additions
and
44 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
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,17 @@ | ||
{ | ||
"tilejson": "3.0.0", | ||
"tiles": [ | ||
"http://localhost:3111/function_Mixed_Name/{z}/{x}/{y}" | ||
], | ||
"vector_layers": [ | ||
{ | ||
"id": "MixedCase.function_Mixed_Name", | ||
"fields": { | ||
"Geom": "", | ||
"TABLE": "" | ||
} | ||
} | ||
], | ||
"description": "a function source with MixedCase name", | ||
"name": "function_Mixed_Name" | ||
} |
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,23 @@ | ||
{ | ||
"tilejson": "3.0.0", | ||
"tiles": [ | ||
"http://localhost:3111/MixPoints/{z}/{x}/{y}" | ||
], | ||
"vector_layers": [ | ||
{ | ||
"id": "MixPoints", | ||
"fields": { | ||
"Gid": "int4", | ||
"TABLE": "text" | ||
} | ||
} | ||
], | ||
"bounds": [ | ||
-170.94984639004662, | ||
-84.20025580733805, | ||
167.70892858284475, | ||
74.23573284753762 | ||
], | ||
"description": "a description from comment on table", | ||
"name": "MixPoints" | ||
} |
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,17 @@ | ||
{ | ||
"tilejson": "3.0.0", | ||
"tiles": [ | ||
"http://localhost:3111/fnc_Mixed_Name/{z}/{x}/{y}" | ||
], | ||
"vector_layers": [ | ||
{ | ||
"id": "MixedCase.function_Mixed_Name", | ||
"fields": { | ||
"Geom": "", | ||
"TABLE": "" | ||
} | ||
} | ||
], | ||
"description": "a function source with MixedCase name", | ||
"name": "fnc_Mixed_Name" | ||
} |
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,23 @@ | ||
{ | ||
"tilejson": "3.0.0", | ||
"tiles": [ | ||
"http://localhost:3111/MixPoints/{z}/{x}/{y}" | ||
], | ||
"vector_layers": [ | ||
{ | ||
"id": "MixPoints", | ||
"fields": { | ||
"Gid": "int4", | ||
"TABLE": "text" | ||
} | ||
} | ||
], | ||
"bounds": [ | ||
-170.94984639004662, | ||
-84.20025580733805, | ||
167.70892858284475, | ||
74.23573284753762 | ||
], | ||
"description": "a description from comment on table", | ||
"name": "MixPoints" | ||
} |
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
Empty file.
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