Branch: Tag:

2017-03-09

2017-03-09 14:32:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Sql.Sql: Sql.Sql() is now a function and not a class.

Now that __builtin.Sql.Connection exists and is used, the wrapper
class should no longer be needed.

The wrapper class has moved to 8.0::Sql.Sql.

40:   //! @note   //! Typed operation was not supported at all prior to Pike 7.8.363,   //! and may not be supported for all databases. + //! + //! @seealso + //! @[Sql.Connection], @[Sql.Sql()], @[Result]      #define ERROR(X ...) predef::error(X)   
260:   //! (eg @[Mysql.mysql()->create()]).   //!   //! @note + //! This function is typically called via @[Sql.Sql()]. + //! + //! @note   //! Support for @[options] was added in Pike 7.3.   //!   //! @note   //! The base class (@[__builtin.Sql.Connection]) only has a prototype. - void create(string host, void|string|mapping(string:int|string) db, + //! + //! @seealso + //! @[Sql.Sql()] + protected void create(string host, void|string|mapping(string:int|string) db,    void|string user, void|string _password,    void|mapping(string:int|string) options);   
314:    catch {    return sizeof(query("SELECT 0 AS zero") || ({})) - 1;    }; +  // FIXME: Inform is_open()?    return -1;   }   
357:    return UNDEFINED;   }    + // FIXME: _sprintf(). +    protected array(mapping(string:mixed)) res_obj_to_array(.Result res_obj)   {    if (!res_obj)