[Groonga-commit] pgroonga/pgroonga at 7370e14 [master] Use regclassin because to_regclass doesn't exist in PostgreSQL 9.3

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 15 11:58:35 JST 2015


Kouhei Sutou	2015-02-15 11:58:35 +0900 (Sun, 15 Feb 2015)

  New Revision: 7370e1436e706b290da1a03a00f6e595b399c8d6
  https://github.com/pgroonga/pgroonga/commit/7370e1436e706b290da1a03a00f6e595b399c8d6

  Message:
    Use regclassin because to_regclass doesn't exist in PostgreSQL 9.3

  Modified files:
    pgroonga.c

  Modified: pgroonga.c (+2 -2)
===================================================================
--- pgroonga.c    2015-02-15 00:48:47 +0900 (b3a97f8)
+++ pgroonga.c    2015-02-15 11:58:35 +0900 (ab0c5b1)
@@ -810,8 +810,8 @@ pgroonga_table_name(PG_FUNCTION_ARGS)
 	char tableName[GRN_TABLE_MAX_KEY_SIZE];
 	char *copiedTableName;
 
-	indexOidDatum = DirectFunctionCall1(to_regclass, indexNameDatum);
-	if (!indexOidDatum)
+	indexOidDatum = DirectFunctionCall1(regclassin, indexNameDatum);
+	if (!OidIsValid(indexOidDatum))
 	{
 		ereport(ERROR,
 				(errcode(ERRCODE_INVALID_NAME),
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index