Skip to content

Commit

Permalink
[CBRD-24903] DROP USER does not check stored procedures owned by the …
Browse files Browse the repository at this point in the history
…user before execution (#4548)

http://jira.cubrid.org/browse/CBRD-24903

- Add '_db_stored_procedure' in the checking list of au_drop_user()
- Remove redundant error message part

cherry-picked from #4508.
  • Loading branch information
hgryoo authored Aug 3, 2023
1 parent 06c6aad commit f41ae37
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion msg/de_DE.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Es gibt einige Diskrepanzen zwischen Quell-String "%1$s" und Format-String "%2$s" in to_number() angegeben.
835 Undefiniertes Statistikelement.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 Der Benutzer, der Datenbankobjekte besitzt, kann nicht gelöscht werden (Klasse/Trigger/Serial/Server/Synonym usw.).
837 Der Benutzer, der Datenbankobjekte besitzt, kann nicht gelöscht werden.
838 Es können nicht mehr als %1$d Index Scans gleichzeitig geöffnet werden.
839 "%1$s": Unbekannter System-Parameter oder falscher Wert.
840 System-Parameter "%1$s" kann nicht geändert werden.
Expand Down
2 changes: 1 addition & 1 deletion msg/en_US.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 There are some mismatches between source string "%1$s" and format string "%2$s" given in to_number().
835 Undefined statistics item.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 Cannot drop the user who owns database objects(class/trigger/serial/server/synonym etc).
837 Cannot drop the user who owns database objects.
838 Cannot open more than %1$d index scans simultaneously.
839 "%1$s": Unknown system parameter or bad value.
840 Cannot change system parameter "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/en_US/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 There are some mismatches between source string "%1$s" and format string "%2$s" given in to_number().
835 Undefined statistics item.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 Cannot drop the user who owns database objects(class/trigger/serial/server/synonym etc).
837 Cannot drop the user who owns database objects.
838 Cannot open more than %1$d index scans simultaneously.
839 "%1$s": Unknown system parameter or bad value.
840 Cannot change system parameter "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/es_ES.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Hay algunos desajustes entre el string de origen "%1$s" y el string de formato "%2$s" dados en to_number().
835 Artículo de estadísticas indefinido.
836 Pestillo en la pagina (%1$d|%2$d) ha expirado
837 No se puede disminuir el usuario que patrocina objetos de base de datos (clase/trigger/serial/server/synonym etc)
837 No se puede disminuir el usuario que patrocina objetos de base de datos.
838 No se pueden abrir simultaneamente mas de %1$d tomografías de indice.
839 "%1$s": parametro de sistema desconocido o valor malo.
840 No se puede cambiar el parametro de sistema "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/fr_FR.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Il ya quelques incohérences entre la chaîne source "%1$s" et la chaîne de format "%2$s" donnée dans to_number().
835 Objet de statistique pas defini.
836 LATCH ON PAGE(%1$d|%2$d) a expiré.
837 Impossible de supprimer l'utilisateur qui possède des objets de base de données(classe/gâchette/serial/serveur/synonym etc).
837 Impossible de supprimer l'utilisateur qui possède des objets de base de données.
838 Impossible d'ouvrir plus de %1$d analyses d'index simultanément.
839 "%1$s": Paramètre de système inconnu ou mauvaise valeur.
840 Impossible de modifier le paramètres de système "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/it_IT.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Ci sono delle discrepanze tra stringa di origine "%1$s" e la stringa di formato "%2$s" dato nel to_number().
835 Artocolo non definito di statistiche.
836 Blocco sulla pagina (%1$d|%2$d) è scaduto.
837 Impossibile eliminare l'utente che possiede oggetti di database (classe/trigger/seriale/server/synonym etc.)
837 Impossibile eliminare l'utente che possiede oggetti di database.
838 Non è possibile aprire più di %1$d scansioni di index contemporaneamente.
839 "%1$s": parametro di sistema sconosciuto o valore non valido.
840 Non è possibile modificare il parametro di sistema "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/ja_JP.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 to_number()ファンクションに使ったストリング「%1$s」とフォマットストリング「%2$s」マッチングしません。
835 定義されていない通計アイテムです。
836 ページ(%1$d|%2$d)に対するラッチ獲得リクエストがタイムアウトされました。
837 データベースオブジェクト(クラス/ビュー/トリガー/シリアル/サーバー/同義語など)を持つユーザーは削除できません。
837 データベースオブジェクト を持つユーザーは削除できません。
838 同時に%1$d個を超えるインデックススキャンが開けません。
839 「%1$s」: わからないシステムパラメーター、または正しくないバリューです。
840 システムパラメーター「%1$s」が変えられません。
Expand Down
2 changes: 1 addition & 1 deletion msg/km_KH.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 There are some mismatches between source string "%1$s" and format string "%2$s" given in to_number().
835 Undefined statistics item.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 Cannot drop the user who owns database objects(class/trigger/serial/server/synonym etc).
837 Cannot drop the user who owns database objects.
838 Cannot open more than %1$d index scans simultaneously.
839 "%1$s": Unknown system parameter or bad value.
840 Cannot change system parameter "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/ko_KR.euckr/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 to_number() �Լ��� �־��� source ���ڿ� "%1$s"�� format ���ڿ� "%2$s"�� ��Ī���� �ʽ��ϴ�.
835 ���ǵ��� ���� ��� �������Դϴ�.
836 ������(%1$d|%2$d)�� ���� ��ġ ȹ�� ��û�� �ð��� �ʰ��Ͽ����ϴ�.
837 �����ͺ��̽� ��ü(Ŭ����/��/Ʈ����/serial/server/synonym ��)�� ������ ����ڴ� ������ �� �����ϴ�.
837 �����ͺ��̽� ��ü�� ������ ����ڴ� ������ �� �����ϴ�.
838 ���ÿ� %1$d���� �ʰ��ϴ� �ε��� ��ĵ�� �� �� �����ϴ�.
839 "%1$s": �� �� ���� �ý��� �Ķ���� �̰ų� ���� �߸��Ǿ����ϴ�.
840 �ý��� �Ķ���� "%1$s"�� �ٲ� �� �����ϴ�.
Expand Down
2 changes: 1 addition & 1 deletion msg/ko_KR.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 to_number() 함수에 주어진 source 문자열 "%1$s"과 format 문자열 "%2$s"이 매칭되지 않습니다.
835 정의되지 않은 통계 아이템입니다.
836 페이지(%1$d|%2$d)에 대한 래치 획득 요청이 시간을 초과하였습니다.
837 데이터베이스 객체(클래스/뷰/트리거/serial/server/synonym 등)을 소유한 사용자는 삭제할 수 없습니다.
837 데이터베이스 객체를 소유한 사용자는 삭제할 수 없습니다.
838 동시에 %1$d개를 초과하는 인덱스 스캔을 열 수 없습니다.
839 "%1$s": 알 수 없는 시스템 파라미터 이거나 값이 잘못되었습니다.
840 시스템 파라미터 "%1$s"를 바꿀 수 없습니다.
Expand Down
2 changes: 1 addition & 1 deletion msg/ro_RO.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Există disconcordanţe între şirul de caractere sursă "%1$s" şi şirul de formatare "%2$s" date în to_number().
835 Element de statistică necunoscut.
836 Latch-ul pe pagina(%1$d|%2$d) a expirat.
837 Un utilizator care deţine obiecte în baza de date(clase/declanşatori/seriale/server/synonym etc) nu poate fi şters.
837 Un utilizator care deţine obiecte în baza de date nu poate fi şters.
838 Nu se pot deschide simultan mai mult de %1$d indecşi.
839 "%1$s": Parametru de sistem necunoscut sau valoare invalidă.
840 Parametrul de sistem "%1$s" nu poate fi schimbat.
Expand Down
2 changes: 1 addition & 1 deletion msg/tr_TR.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 Kaynak dizesi arasında bazı uyumsuzluklar "%1$s" ve verilen "%2$s" biçim dizesi vardır to_number() .
835 Tanımlanmamış istatistikler öğesi.
836 SAYFASINDA LATCH (%1$d|%2$d) ZAMAN AŞIMI.
837 Veritabanı nesneleri (sınıf / tetik / seri / sunucu / synonym vb) sahibi olan kullanıcılara aittir iptal edemezsiniz..
837 Veritabanı nesneleri sahibi olan kullanıcılara aittir iptal edemezsiniz.
838 Eşzamanlı olarak taranan indeksi %1$d den daha fazla açılamaz .
839 "%1$s": Bilinmeyen sistem parametresi veya bozuk bir değer.
840 Sistem parametresi değiştiremezsiniz "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/vi_VN.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 There are some mismatches between source string "%1$s" and format string "%2$s" given in to_number().
835 Undefined statistics item.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 Cannot drop the user who owns database objects(class/trigger/serial/server/synonym etc).
837 Cannot drop the user who owns database objects.
838 Cannot open more than %1$d index scans simultaneously.
839 "%1$s": Unknown system parameter or bad value.
840 Cannot change system parameter "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion msg/zh_CN.utf8/cubrid.msg
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ $ LOADDB
834 在给to_number()的源字符串 "%1$s" 和格式字符串之间 "%2$s" 存在一些匹配不一致.
835 未定义的统计项目.
836 LATCH ON PAGE(%1$d|%2$d) TIMEDOUT
837 您不能删除拥有数据库对象(类/触发器/序列/服务器/同义词等)的用户
837 您不能删除拥有数据库对象的用户
838 无法同时打开多于 %1$d index scans.
839 "%1$s": 未知的系统参数或错误的值.
840 无法改变系统参数 "%1$s".
Expand Down
2 changes: 1 addition & 1 deletion src/object/authenticate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3456,7 +3456,7 @@ au_drop_user (MOP user)
* drop user command can be called only by DBA group,
* so we can use query for _db_class directly
*/
"_db_class", "db_trigger", "db_serial", "_db_server", "_db_synonym", NULL
"_db_class", "db_trigger", "db_serial", "_db_server", "_db_synonym", "_db_stored_procedure", NULL
};
char query_buf[1024];

Expand Down

0 comments on commit f41ae37

Please sign in to comment.