MCPcopy Create free account
hub / github.com/Tencent/phxsql / store_pk

Method store_pk

phx_percona/percona/sql/sql_acl.cc:565–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563 }
564
565 static int store_pk(TABLE *table,
566 const LEX_STRING *host,
567 const LEX_STRING *user,
568 const LEX_STRING *proxied_host,
569 const LEX_STRING *proxied_user)
570 {
571 DBUG_ENTER("ACL_PROXY_USER::store_pk");
572 DBUG_PRINT("info", ("host=%s, user=%s, proxied_host=%s, proxied_user=%s",
573 host->str ? host->str : "<NULL>",
574 user->str ? user->str : "<NULL>",
575 proxied_host->str ? proxied_host->str : "<NULL>",
576 proxied_user->str ? proxied_user->str : "<NULL>"));
577 if (table->field[MYSQL_PROXIES_PRIV_HOST]->store(host->str,
578 host->length,
579 system_charset_info))
580 DBUG_RETURN(TRUE);
581 if (table->field[MYSQL_PROXIES_PRIV_USER]->store(user->str,
582 user->length,
583 system_charset_info))
584 DBUG_RETURN(TRUE);
585 if (table->field[MYSQL_PROXIES_PRIV_PROXIED_HOST]->store(proxied_host->str,
586 proxied_host->length,
587 system_charset_info))
588 DBUG_RETURN(TRUE);
589 if (table->field[MYSQL_PROXIES_PRIV_PROXIED_USER]->store(proxied_user->str,
590 proxied_user->length,
591 system_charset_info))
592 DBUG_RETURN(TRUE);
593
594 DBUG_RETURN(FALSE);
595 }
596
597 static int store_data_record(TABLE *table,
598 const LEX_STRING *host,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected