1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
/* 
 * Sybase driver for the Pike programming language. 
 */ 
 
#pike __REAL_VERSION__ 
#require constant(sybase.sybase) 
 
// Cannot dump this since the #require check may depend on the 
// presence of system libs at runtime. 
optional constant dont_dump_program = 1; 
 
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, 
            void|string _pass, void|mapping options) { 
  string pass = _pass; 
  _pass = "CENSORED"; 
  mo::create(host||"", db||"", user||"", pass||"", options); 
  if (db && stringp(db) && sizeof(db)) 
    mo::big_query("use " + db); 
} 
 
variant __builtin.Sql.Result big_query(string q) { 
  return mo::big_query(q); 
}