pike.git / lib / modules / Sql.pmod / odbc.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/odbc.pike:4:      #pike __REAL_VERSION__   #require constant(Odbc.odbc)      // Cannot dump this since the #require check may depend on the   // presence of system libs at runtime.   optional constant dont_dump_program = 1;      inherit Odbc.odbc;    - int|object big_query(object|string q, mapping(string|int:mixed)|void bindings) - { -  if (!bindings) -  return ::big_query(q); -  return ::big_query(.sql_util.emulate_bindings(q, bindings, this)); - } -  - int|object big_typed_query(object|string q, -  mapping(string|int:mixed)|void bindings) - { -  if (!bindings) -  return ::big_typed_query(q); -  return ::big_typed_query(.sql_util.emulate_bindings(q, bindings, this)); - } -  +    constant list_dbs = Odbc.list_dbs;      //!   class TypedResult   {    inherit ::this_program;       //! Value to use to represent NULL.    mixed _null_value = Val.null;   
pike.git/lib/modules/Sql.pmod/odbc.pike:49:    object(Gmp.mpq)|int scale_numeric(int mantissa, int scale)    {    if (!scale) return mantissa;    if (scale > 0) {    return mantissa * 10->pow(scale);    }    return Gmp.mpq(mantissa, 10->pow(-scale));    }       //! Time of day. -  class TOD(int hour, int minute, int second, -  int|void nanos) +  class TOD(int hour, int minute, int second, int|void nanos)    {    protected string _sprintf(int c)    {    if (nanos) {    return sprintf("%02d:%02d:%02d.%09d",    hour, minute, second, nanos);    }    return sprintf("%02d:%02d:%02d", hour, minute, second);    }