Class: Fb::SqlType

Inherits:
Data
  • Object
show all
Defined in:
ext/fb/fb_ext.c

Class Method Summary collapse

Class Method Details

.from_code(code, subtype) ⇒ String

Returns the SQL type, such as VARCHAR or INTEGER for a given type code and subtype.

Returns:

  • (String)


446
447
448
449
# File 'ext/fb/fb_ext.c', line 446

static VALUE sql_type_from_code(VALUE self, VALUE code, VALUE subtype)
{
  return fb_sql_type_from_code(NUM2INT(code), NUM2INT(subtype));
}