Skip to content
Snippets Groups Projects
Select Git revision
  • bc63438c23cae6d876b4c424cfbe5f37b3468475
  • master default protected
  • hpke
  • ppc-chacha-4core
  • delete-internal-name-mangling
  • master-updates
  • ppc-gcm
  • ppc-chacha-2core
  • refactor-ecc-mod
  • ppc-chacha-core
  • use-mpn_cnd-functions
  • optimize-ecc-invert
  • default-m4-quote-char
  • power-asm-wip
  • test-fat
  • chacha-3core-neon
  • x86_64-salsa20-2core
  • salsa20-2core-neon
  • bcrypt
  • arm-salsa20-chacha-vsra
  • test-shlib-dir
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
41 results

base16-meta.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    sybase.pike 2.16 KiB
    /*
     * Sybase driver for the Pike programming language.
     * By Francesco Chemolli <kinkie@roxen.com> 10/12/1999
     *
     * $Id: sybase.pike,v 1.10 2004/04/16 12:12:46 grubba Exp $
     *
     */
    
    #pike __REAL_VERSION__
    
    #if constant(sybase.sybase)
    
    inherit sybase.sybase:mo;
    #define THROW(X) throw(({X+"\n",backtrace()}))
    
    
    /*
     * Deprecated. Use connect(host,db,user,pass) instead.
     */
    void select_db(string db)
    {
      mo::big_query("use "+db);
    }
    
    /*
     * Deprecated. Use an SQL command instead.
     */
    void create_db (string dbname) {
      mo::big_query("create database "+dbname);
    }
    
    /*
     * Deprecated. Use an SQL command instead.
     */
    void drop_db (string dbname) {
      mo::big_query("drop database "+dbname);
    }
    
    void shutdown() {
      catch { //there _will_ be an error. It's just that we don't care about it.
        mo::big_query("shutdown");
      };
    }
    
    string server_info () {
      return "sybase/10.X or 11.X";
    }
    
    /*
     * Unimplemented. Anyone knows Transact-SQL well enough?
     * maybe we could use the connection properties otherwise (CS_HOSTNAME)
     */
    string host_info() {
      return "unknown";
    }
    
    /*
     * Unimplemented. Anyone knows Transact-SQL well enough?
     */
    array(string) list_dbs(string|void wild) {
      THROW("Unsupported");
    }
    
    /*
     * Unimplemented. PLEASE tell me somebody knows how to do this.
     * There MUST be some system stored procedure...
     */
    array(string) list_tables(string|void wild) {
      THROW("Unsupported");
    }
    
    /*
     * Unimplemented.
     */
    array(string) list_fields(string|void wild) {
      THROW("Unsupported");
    }
    
    int num_rows() {
      THROW("Unsupported by the DB server");
    }
    
    void seek(int skipthismany) {
      if (skipthismany<0)
        THROW("Negative skips are not supported");
      if (!skipthismany)
        return;
      while (skipthismany && fetch_row()){
        skipthismany--;
      }
    }
    
    void create(void|string host, void|string db, void|string user,
                void|string pass) {
      mo::create(host||"",db||"",user||"",pass||"");
      if (db && stringp(db) && sizeof(db)) {
        mo::big_query("use "+db);
      }
    }
    
    int|object big_query(string q, mapping(string|int:mixed)|void bindings) {
      if (!bindings)
        return ::big_query(q);
      return ::big_query(.sql_util.emulate_bindings(q,bindings,this));
    }
    
    #else
    constant this_program_does_not_exist=1;
    #endif