fixed typo and updated changelog
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
## v0.36.0-rc.1
|
||||||
|
|
||||||
|
- Minor list query and API rules optimizations:
|
||||||
|
- Removed unnecessery correlated subquery expression when using back-relations via single `relation` field.
|
||||||
|
- Replaced `DISTINCT` with `GROUP BY id` when rows deduplication is needed.
|
||||||
|
_This should help with having a more stable and predictable performance even if the table rows are on the larger side._
|
||||||
|
|
||||||
|
|
||||||
## v0.35.1
|
## v0.35.1
|
||||||
|
|
||||||
- Updated `modernc.org/sqlite` to v1.43.0 _(SQLite 3.51.1 and query cancellation race fix)_.
|
- Updated `modernc.org/sqlite` to v1.43.0 _(SQLite 3.51.1 and query cancellation race fix)_.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import "regexp"
|
|||||||
// Regexp for columns and tables (the same as the one in dbx).
|
// Regexp for columns and tables (the same as the one in dbx).
|
||||||
var selectRegex = regexp.MustCompile(`(?i:\s+as\s+|\s+)([\w\-_\.]+)$`)
|
var selectRegex = regexp.MustCompile(`(?i:\s+as\s+|\s+)([\w\-_\.]+)$`)
|
||||||
|
|
||||||
// AliasOrIdentifier returns the alias from a column or table identifier,
|
// AliasOrIdentifier returns the alias from a column or table identifier.
|
||||||
// Returns the identifier unmodified if no alias was found.
|
// Returns the identifier unmodified if no alias was found.
|
||||||
func AliasOrIdentifier(columnOrTableIdentifier string) string {
|
func AliasOrIdentifier(columnOrTableIdentifier string) string {
|
||||||
matches := selectRegex.FindStringSubmatch(columnOrTableIdentifier)
|
matches := selectRegex.FindStringSubmatch(columnOrTableIdentifier)
|
||||||
|
|||||||
Reference in New Issue
Block a user