Changeset 561


Ignore:
Timestamp:
Nov 20, 2015, 11:54:55 AM (4 years ago)
Author:
cito
Message:

Keep the old names on the Python level

Reverted some renaming in r530 that was probably done by mistake,
as we don't want to change the method names on the Python level.
Particularly, the proper names should appear in the docstrings.
Or maybe we should remove them from the docstrings completely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/pgmodule.c

    r560 r561  
    17041704/* escape literal */
    17051705static char connEscapeLiteral__doc__[] =
    1706 "connEscapeLiteral(str) -- escape a literal constant for use within SQL.";
     1706"escape_literal(str) -- escape a literal constant for use within SQL.";
    17071707
    17081708static PyObject *
     
    17271727/* escape identifier */
    17281728static char connEscapeIdentifier__doc__[] =
    1729 "connEscapeIdentifier(str) -- escape an identifier for use within SQL.";
     1729"escape_identifier(str) -- escape an identifier for use within SQL.";
    17301730
    17311731static PyObject *
     
    17521752/* escape string */
    17531753static char connEscapeString__doc__[] =
    1754 "connEscapeString(str) -- escape a string for use within SQL.";
     1754"escape_string(str) -- escape a string for use within SQL.";
    17551755
    17561756static PyObject *
     
    17841784/* escape bytea */
    17851785static char connEscapeBytea__doc__[] =
    1786 "connEscapeBytea(data) -- escape binary data for use within SQL as type bytea.";
     1786"escape_bytea(data) -- escape binary data for use within SQL as type bytea.";
    17871787
    17881788static PyObject *
     
    36613661/* escape string */
    36623662static char pgEscapeString__doc__[] =
    3663 "pgEscapeString(str) -- escape a string for use within SQL.";
     3663"escape_string(str) -- escape a string for use within SQL.";
    36643664
    36653665static PyObject *
     
    36923692/* escape bytea */
    36933693static char pgEscapeBytea__doc__[] =
    3694 "pgEscapeBytea(data) -- escape binary data for use within SQL as type bytea.";
     3694"escape_bytea(data) -- escape binary data for use within SQL as type bytea.";
    36953695
    36963696static PyObject *
     
    37163716/* unescape bytea */
    37173717static char pgUnescapeBytea__doc__[] =
    3718 "pgUnescapeBytea(str) -- unescape bytea data that has been retrieved as text.";
     3718"unescape_bytea(str) -- unescape bytea data that has been retrieved as text.";
    37193719
    37203720static PyObject
     
    37393739/* set decimal point */
    37403740static char pgSetDecimalPoint__doc__[] =
    3741 "pgSetDecimalPoint() -- set decimal point to be used for money values.";
     3741"set_decimal_point() -- set decimal point to be used for money values.";
    37423742
    37433743static PyObject *
     
    37573757/* get decimal point */
    37583758static char pgGetDecimalPoint__doc__[] =
    3759 "pgGetDecimalPoint() -- get decimal point to be used for money values.";
     3759"get_decimal_point() -- get decimal point to be used for money values.";
    37603760
    37613761static PyObject *
     
    37713771        {
    37723772                PyErr_SetString(PyExc_TypeError,
    3773                         " pgGetDecimalPoint() takes no parameter");
     3773                        " get_decimal_point() takes no parameter");
    37743774        }
    37753775
     
    41814181        {"unescape_bytea", (PyCFunction) pgUnescapeBytea, METH_VARARGS,
    41824182                        pgUnescapeBytea__doc__},
    4183         {"set_decimalpoint", (PyCFunction) pgSetDecimalPoint, METH_VARARGS,
     4183        {"set_decimal_point", (PyCFunction) pgSetDecimalPoint, METH_VARARGS,
    41844184                        pgSetDecimalPoint__doc__},
    4185         {"get_decimalpoint", (PyCFunction) pgGetDecimalPoint, METH_VARARGS,
     4185        {"get_decimal_point", (PyCFunction) pgGetDecimalPoint, METH_VARARGS,
    41864186                        pgGetDecimalPoint__doc__},
    41874187        {"set_decimal", (PyCFunction) pgSetDecimal, METH_VARARGS,
Note: See TracChangeset for help on using the changeset viewer.