diff --git a/lib/modules/Sql.pmod/mysql.pike b/lib/modules/Sql.pmod/mysql.pike index e10b8dd37717a4bc63c9715b1975c11d000c8830..0fec4457bc03522914c13cd098fd045fcc730b6e 100644 --- a/lib/modules/Sql.pmod/mysql.pike +++ b/lib/modules/Sql.pmod/mysql.pike @@ -14,30 +14,20 @@ //! types are represented like this: //! //! @dl -//! @item NULL +//! @item The NULL value //! Returned as @[Val.null]. //! -//! @item BIT -//! @item TINYINT -//! @item BOOL -//! @item SMALLINT -//! @item MEDIUMINT -//! @item INT -//! @item BIGINT +//! @item BIT, TINYINT, BOOL, SMALLINT, MEDIUMINT, INT, BIGINT //! Returned as pike integers. //! -//! @item FLOAT -//! @item DOUBLE +//! @item FLOAT, DOUBLE //! Returned as pike floats. //! //! @item DECIMAL //! Returned as pike integers for fields that are declared to //! contain zero decimals, otherwise returned as @[Gmp.mpq] objects. //! -//! @item DATE -//! @item DATETIME -//! @item TIME -//! @item YEAR +//! @item DATE, DATETIME, TIME, YEAR //! Returned as strings in their display representation (see the //! MySQL manual). //! @@ -54,7 +44,7 @@ //! @tt{UNIX_TIMESTAMP@} function in the queries to retrieve them as //! unix timestamps on integer form. //! -//! @item "String types" +//! @item String types //! All string types are returned as pike strings. The MySQL glue //! can handle charset conversions for text strings - see //! @[set_charset] and @[set_unicode_decode_mode]. diff --git a/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod b/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod index 6afebdc9139a6318b415bc55be5785a29c81cfde..9ded9cb339e269ffcf4805a0573781be1030c3de 100644 --- a/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod +++ b/lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod @@ -329,6 +329,7 @@ protected class DocParserClass { "section" : sectionArgHandler, "type" : typeArgHandler, "value" : valueArgHandler, + "item": itemArgHandler, ]); protected string memberArgHandler(string keyword, string arg) { @@ -448,6 +449,11 @@ protected class DocParserClass { parseError("@value: expected indentifier or literal constant, got %O", arg); } + protected mapping(string:string) itemArgHandler (string keyword, string arg) + { + return (["name": String.trim_all_whites (arg)]); + } + protected mapping(string : string) standardArgHandler(string keyword, string arg) { array(string) args = ({});