File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ydb/library/yql/parser/pg_wrapper Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -696,10 +696,10 @@ namespace NMiniKQL {
696
696
void PgCreateSysCacheEntries (void * ctx) {
697
697
auto main = (TMainContext*)ctx;
698
698
if (main->GUCSettings ) {
699
- if (main->GUCSettings ->Get (" ydb_database" )) {
699
+ if (main->GUCSettings ->Get (" ydb_database" ) && main-> GUCSettings -> Get ( " ydb_database " )-> size () < NAMEDATALEN ) {
700
700
main->CurrentDatabaseName = NYql::TSysCache::MakePgDatabaseHeapTuple (NYql::PG_CURRENT_DATABASE_ID, main->GUCSettings ->Get (" ydb_database" )->c_str ());
701
701
}
702
- if (main->GUCSettings ->Get (" ydb_user" )) {
702
+ if (main->GUCSettings ->Get (" ydb_user" ) && main-> GUCSettings -> Get ( " ydb_user " )-> size () < NAMEDATALEN ) {
703
703
main->CurrentUserName = NYql::TSysCache::MakePgRolesHeapTuple (NYql::PG_CURRENT_USER_ID, main->GUCSettings ->Get (" ydb_user" )->c_str ());
704
704
}
705
705
}
You can’t perform that action at this time.
0 commit comments