/* Returns CR_OK upon successful completion, an error code otherwise.  */
enum CRStatus cr_statement_at_charset_rule_get_charset(CRStatement *a_this, CRString **a_charset)
/* Returns CR_OK upon successful completion, an error code otherwise.  */
enum CRStatus cr_statement_at_charset_rule_get_charset(CRStatement *a_this, CRString **a_charset)
{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_CHARSET_RULE_STMT
                              && a_this->kind.charset_rule,
                              CR_BAD_PARAM_ERROR);
        *a_charset = a_this->kind.charset_rule->charset;
        return CR_OK;
}