Skip to content
Snippets Groups Projects
Commit 749ed585 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Doc fixes: Removed a bad example of error handling. Corrected another

example.

Rev: lib/modules/Sql.pmod/Sql.pike:1.86
parent e3dd8c8a
Branches
Tags
No related merge requests found
/* /*
* $Id: Sql.pike,v 1.85 2005/11/26 03:14:06 nilsson Exp $ * $Id: Sql.pike,v 1.86 2006/09/15 12:19:30 mast Exp $
* *
* Implements the generic parts of the SQL-interface * Implements the generic parts of the SQL-interface
* *
...@@ -399,12 +399,8 @@ static array(string|mapping(string|int:mixed)) ...@@ -399,12 +399,8 @@ static array(string|mapping(string|int:mixed))
//! the variable is used. //! the variable is used.
//! //!
//! @code //! @code
//! mixed err = catch { //! res = query("SELECT foo FROM bar WHERE gazonk=:baz",
//! query("SELECT foo FROM bar WHERE gazonk=:baz",
//! ([":baz":"value"])); //! ([":baz":"value"]));
//! };
//! if(err)
//! werror("An error occured.");
//! @endcode //! @endcode
//! //!
//! Binary values (BLOBs) may need to be placed in multisets. //! Binary values (BLOBs) may need to be placed in multisets.
...@@ -414,7 +410,7 @@ static array(string|mapping(string|int:mixed)) ...@@ -414,7 +410,7 @@ static array(string|mapping(string|int:mixed))
//! quoted. //! quoted.
//! //!
//! @code //! @code
//! query("select foo from bar where gazonk=%s","value") ) //! res = query("select foo from bar where gazonk=%s","value");
//! @endcode //! @endcode
//! @endol //! @endol
//! //!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment