Skip to content
Snippets Groups Projects
Commit c7b149e6 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed a few bugs.

Rev: lib/modules/Sql.pmod/sql.pike:1.30
parent eecc9382
Branches
Tags
No related merge requests found
/* /*
* $Id: sql.pike,v 1.29 1999/06/01 20:41:00 marcus Exp $ * $Id: sql.pike,v 1.30 1999/06/14 22:14:42 grubba Exp $
* *
* Implements the generic parts of the SQL-interface * Implements the generic parts of the SQL-interface
* *
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
//. //.
//. File: sql.pike //. File: sql.pike
//. RCSID: $Id: sql.pike,v 1.29 1999/06/01 20:41:00 marcus Exp $ //. RCSID: $Id: sql.pike,v 1.30 1999/06/14 22:14:42 grubba Exp $
//. Author: Henrik Grubbstrm (grubba@idonex.se) //. Author: Henrik Grubbstrm (grubba@idonex.se)
//. //.
//. Synopsis: Implements the generic parts of the SQL-interface. //. Synopsis: Implements the generic parts of the SQL-interface.
...@@ -179,9 +179,9 @@ void create(void|string|object host, void|string db, ...@@ -179,9 +179,9 @@ void create(void|string|object host, void|string db,
program_names = indices(Sql); program_names = indices(Sql);
// Restore compiler errors mode to whatever it was before. // Restore compiler errors mode to whatever it was before.
master()->inhibit_compile_errors = old_inhib; master()->inhibit_compile_errors = old_inhib;
#endif /* PIKE_SQL_DEBUG */
throw_errors = 0; throw_errors = 0;
#endif /* PIKE_SQL_DEBUG */
} }
foreach(program_names, string program_name) { foreach(program_names, string program_name) {
...@@ -220,8 +220,6 @@ void create(void|string|object host, void|string db, ...@@ -220,8 +220,6 @@ void create(void|string|object host, void|string db,
} else { } else {
master_sql = p(); master_sql = p();
} }
if(master_sql)
break;
}; };
if (err) { if (err) {
if (throw_errors) { if (throw_errors) {
...@@ -243,6 +241,8 @@ void create(void|string|object host, void|string db, ...@@ -243,6 +241,8 @@ void create(void|string|object host, void|string db,
#endif /* PIKE_SQL_DEBUG */ #endif /* PIKE_SQL_DEBUG */
} }
}; };
if(master_sql)
break;
if (err && throw_errors) { if (err && throw_errors) {
throw(err); throw(err);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment