fixed dev log query print formatting
This commit is contained in:
parent
cb2b27f6ed
commit
06acaf38d8
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
- Added support for passing more than one id in the `Hook.Unbind` method for consistency with the router.
|
- Added support for passing more than one id in the `Hook.Unbind` method for consistency with the router.
|
||||||
|
|
||||||
|
- Fixed `--dev` log query print formatting.
|
||||||
|
|
||||||
|
|
||||||
## v0.23.1
|
## v0.23.1
|
||||||
|
|
|
@ -1138,8 +1138,8 @@ var sqlLogReplacements = map[string]string{
|
||||||
"]]": "`",
|
"]]": "`",
|
||||||
"<nil>": "NULL",
|
"<nil>": "NULL",
|
||||||
}
|
}
|
||||||
var sqlLogPrefixedTableIdentifierPattern = regexp.MustCompile(`\[\[(.+)\.(.+)\]\]`)
|
var sqlLogPrefixedTableIdentifierPattern = regexp.MustCompile(`\[\[([^\[\]\{\}\.]+)\.([^\[\]\{\}\.]+)\]\]`)
|
||||||
var sqlLogPrefixedColumnIdentifierPattern = regexp.MustCompile(`\{\{(.+)\.(.+)\}\}`)
|
var sqlLogPrefixedColumnIdentifierPattern = regexp.MustCompile(`\{\{([^\[\]\{\}\.]+)\.([^\[\]\{\}\.]+)\}\}`)
|
||||||
|
|
||||||
// normalizeSQLLog replaces common query builder charactes with their plain SQL version for easier debugging.
|
// normalizeSQLLog replaces common query builder charactes with their plain SQL version for easier debugging.
|
||||||
// The query is still not suitable for execution and should be used only for log and debug purposes
|
// The query is still not suitable for execution and should be used only for log and debug purposes
|
||||||
|
|
Loading…
Reference in New Issue