We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ERROR: column b.id does not exist (SQLSTATE 42703) [5.345ms] [rows:0] SELECT count(*) FROM logger AS a left join user b on a.user_id=b.id
im using postgres
[Logger] Debug = true Level = "debug" # debug/info/warn/error/dpanic/panic/fatal CallerSkip = 1
[Logger.File] Enable = false Path = "data/log/goapigateway.log" MaxBackups = 20 # Files MaxSize = 64 # MB
[[Logger.Hooks]] Enable = true Level = "info" Type = "gorm" # gorm MaxBuffer = 1024 MaxThread = 2
[Logger.Hooks.Options] Debug = "false" DBType = "postgres" # sqlite3/mysql/postgres
DSN = "host=localhost user=postgres password=password dbname=goapigateway port=5432 sslmode=disable TimeZone=Asia/Jakarta" MaxOpenConns = "16" MaxIdleConns = "4" MaxLifetime = "86400" MaxIdleTime = "7200"
The text was updated successfully, but these errors were encountered:
update internal\mods\sys\dal\logger.dal.go
db = db.Joins(fmt.Sprintf("left join %s b on a.user_id=b.id", new(rbacSchema.User).TableName()))
to
db = db.Joins(fmt.Sprintf("left join \"%s\" b on a.user_id=b.id", new(rbacSchema.User).TableName()))
Sorry, something went wrong.
No branches or pull requests
ERROR: column b.id does not exist (SQLSTATE 42703)
[5.345ms] [rows:0] SELECT count(*) FROM logger AS a left join user b on a.user_id=b.id
im using postgres
[Logger]
Debug = true
Level = "debug" # debug/info/warn/error/dpanic/panic/fatal
CallerSkip = 1
[Logger.File]
Enable = false
Path = "data/log/goapigateway.log"
MaxBackups = 20 # Files
MaxSize = 64 # MB
[[Logger.Hooks]]
Enable = true
Level = "info"
Type = "gorm" # gorm
MaxBuffer = 1024
MaxThread = 2
[Logger.Hooks.Options]
Debug = "false"
DBType = "postgres" # sqlite3/mysql/postgres
DSN = "data/goapigateway.db"
DSN = "host=localhost user=postgres password=password dbname=goapigateway port=5432 sslmode=disable TimeZone=Asia/Jakarta"
MaxOpenConns = "16"
MaxIdleConns = "4"
MaxLifetime = "86400"
MaxIdleTime = "7200"
The text was updated successfully, but these errors were encountered: