Class: Advantage::a_ads_bind_param_info

Inherits:
Object
  • Object
show all
Defined in:
ext/advantage/advantage.c

Instance Method Summary collapse

Instance Method Details

#get_info_direction(VALUEbind) ⇒ Object

Gets the name of the bound parameter info object.

<b>Parameters</b>:
- <tt>VALUE bind</tt> -- Bound parameter info retrieved from ads_describe_bind_param_info(  ).

<b>Returns</b>:
- <tt>VALUE direction</tt>: The bound variable's direction.


1734
1735
1736
1737
1738
1739
1740
1741
# File 'ext/advantage/advantage.c', line 1734

static VALUE
static_Bind_get_info_direction(VALUE bind)
{
   a_ads_bind_param_info *s_bind;
   Data_Get_Struct(bind, a_ads_bind_param_info, s_bind);

   return (CHR2FIX(s_bind->direction));
}

#get_info_output(VALUEbind) ⇒ Object

Gets the value of a bound parameter after execution.

<b>Parameters</b>:
- <tt>VALUE bind</tt> -- Bound parameter retrieved from ads_describe_bind_param(  ).

<b>Returns</b>:
- <tt>VALUE name</tt>: The bound variable value.


1756
1757
1758
1759
1760
1761
1762
# File 'ext/advantage/advantage.c', line 1756

static VALUE
static_Bind_get_info_output(VALUE bind)
{
   a_ads_bind_param_info *s_bind;
   Data_Get_Struct(bind, a_ads_bind_param_info, s_bind);
   return (C2RB(&s_bind->output_value));
}