6375f22000-03-26Francesco Chemolli /* * Sybase driver for the Pike programming language. */
a580e12000-09-27Fredrik Hübinette (Hubbe) #pike __REAL_VERSION__
e1fb092014-02-14Martin Nilsson #require constant(sybase.sybase)
a20af62000-09-26Fredrik Hübinette (Hubbe) 
e1fb092014-02-14Martin Nilsson // Cannot dump this since the #require check may depend on the // presence of system libs at runtime.
7094252017-03-31Henrik Grubbström (Grubba) optional constant dont_dump_program = 1;
a59c792010-11-02Martin Stjernholm 
6375f22000-03-26Francesco Chemolli inherit sybase.sybase:mo; string server_info () { return "sybase/10.X or 11.X"; } void create(void|string host, void|string db, void|string user,
0a5ec32012-04-12Henrik Grubbström (Grubba)  void|string _pass, void|mapping options) {
1dc3fb2008-01-09Martin Stjernholm  string pass = _pass; _pass = "CENSORED";
eeacb22018-01-24Stephen R. van den Berg  mo::create(host||"", db||"", user||"", pass||"", options); if (db && stringp(db) && sizeof(db)) mo::big_query("use " + db);
6375f22000-03-26Francesco Chemolli }
eeacb22018-01-24Stephen R. van den Berg variant __builtin.Sql.Result big_query(string q) { return mo::big_query(q);
6458a72000-04-29Francesco Chemolli }