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 @@ -756,10 +756,10 @@ namespace NMiniKQL {
756
756
void PgCreateSysCacheEntries (void * ctx) {
757
757
auto main = (TMainContext*)ctx;
758
758
if (main->GUCSettings ) {
759
- if (main->GUCSettings ->Get (" ydb_database" )) {
759
+ if (main->GUCSettings ->Get (" ydb_database" ) && main-> GUCSettings -> Get ( " ydb_database " )-> size () < NAMEDATALEN ) {
760
760
main->CurrentDatabaseName = NYql::TSysCache::MakePgDatabaseHeapTuple (NYql::PG_CURRENT_DATABASE_ID, main->GUCSettings ->Get (" ydb_database" )->c_str ());
761
761
}
762
- if (main->GUCSettings ->Get (" ydb_user" )) {
762
+ if (main->GUCSettings ->Get (" ydb_user" ) && main-> GUCSettings -> Get ( " ydb_user " )-> size () < NAMEDATALEN ) {
763
763
main->CurrentUserName = NYql::TSysCache::MakePgRolesHeapTuple (NYql::PG_CURRENT_USER_ID, main->GUCSettings ->Get (" ydb_user" )->c_str ());
764
764
}
765
765
}
You can’t perform that action at this time.
0 commit comments