Skip to content

Commit

Permalink
Apply codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmin5505 committed Jan 8, 2025
1 parent f7b140b commit 3a93623
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
44 changes: 22 additions & 22 deletions src/object/schema_system_catalog_install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,30 +194,30 @@ catcls_add_charset (MOP class_mop)
}

int
catcls_add_dual(MOP class_mop)
catcls_add_dual (MOP class_mop)
{
DB_VALUE val;
int error_code = NO_ERROR;
DB_OBJECT *obj = db_create_internal (class_mop);
const char *dummy = "X";
if (obj == NULL)
{
DB_VALUE val;
int error_code = NO_ERROR;
DB_OBJECT *obj = db_create_internal (class_mop);
const char *dummy = "X";
if (obj == NULL)
{
assert (er_errid () != NO_ERROR);
return er_errid ();
}
error_code = db_make_varchar (&val, 1, dummy, strlen (dummy), LANG_SYS_CODESET, LANG_SYS_COLLATION);
if (error_code != NO_ERROR)
{
return error_code;
}
assert (er_errid () != NO_ERROR);
return er_errid ();
}
error_code = db_make_varchar (&val, 1, dummy, strlen (dummy), LANG_SYS_CODESET, LANG_SYS_COLLATION);
if (error_code != NO_ERROR)
{
return error_code;
}

error_code = db_put_internal (obj, CT_DUAL_DUMMY, &val);
if (error_code != NO_ERROR)
{
return error_code;
}
error_code = db_put_internal (obj, CT_DUAL_DUMMY, &val);
if (error_code != NO_ERROR)
{
return error_code;
}
return error_code;
}

/* ========================================================================== */
/* MAIN APIS */
Expand Down Expand Up @@ -1121,7 +1121,7 @@ namespace cubschema
}
},
// initializer
catcls_add_dual);
catcls_add_dual);
}

system_catalog_definition
Expand Down Expand Up @@ -1795,7 +1795,7 @@ namespace cubschema
{"arg_count", "integer"},
{"lang", format_varchar (16)},
{"authid", format_varchar (16)},
{"is_deterministic", format_varchar(3)},
{"is_deterministic", format_varchar (3)},
{"target", format_varchar (4096)},
{"owner", format_varchar (256)},
{"code", format_varchar (SM_MAX_STRING_LENGTH)},
Expand Down
12 changes: 6 additions & 6 deletions src/object/schema_system_catalog_install.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ namespace cubschema
};
}

EXPORT_IMPORT void catcls_init(void);
EXPORT_IMPORT int catcls_install(void);
EXPORT_IMPORT void catcls_init (void);
EXPORT_IMPORT int catcls_install (void);

#if defined(CS_MODE) || defined(SA_MODE)

#include "dbtype_def.h"

EXPORT_IMPORT int catcls_add_dual(MOP class_mop);
EXPORT_IMPORT int catcls_add_data_type(MOP class_mop);
EXPORT_IMPORT int catcls_add_charset(MOP class_mop);
EXPORT_IMPORT int catcls_add_collation(MOP class_mop);
EXPORT_IMPORT int catcls_add_dual (MOP class_mop);
EXPORT_IMPORT int catcls_add_data_type (MOP class_mop);
EXPORT_IMPORT int catcls_add_charset (MOP class_mop);
EXPORT_IMPORT int catcls_add_collation (MOP class_mop);

#endif

Expand Down

0 comments on commit 3a93623

Please sign in to comment.