summaryrefslogtreecommitdiff
path: root/databases/py-PgSQL/patches/patch-aa
blob: be44a827fcca56c9df83191bb4991090b4e42126 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$NetBSD: patch-aa,v 1.2 2004/08/05 22:20:11 recht Exp $

--- libpqmodule.c.orig	2004-08-03 20:20:48.000000000 +0200
+++ libpqmodule.c	2004-08-03 20:20:56.000000000 +0200
@@ -364,7 +364,6 @@
     }
 
     sout[j++] = (forArray ? '"' : '\'');
-    sout[j] = (char)0;
 
     result = Py_BuildValue("s#", sout, j);
     PyMem_Free(sout);
@@ -411,8 +410,6 @@
 	}
     }
 
-    sout[j] = (char)0;
-
     result = Py_BuildValue("s#", sout, j);
     PyMem_Free(sout);
 
@@ -791,7 +788,7 @@
         return PgInt8_FromString(s, (char **)NULL, 10);
     }
 
-    PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+    PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
     return (PyObject *)NULL;
 }
 #endif
@@ -855,7 +852,7 @@
         return PgInt2_FromString(s, (char **)NULL, 10);
     }
 
-    PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+    PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
     return (PyObject *)NULL;
 }
 
@@ -907,7 +904,7 @@
         return libPQbool_FromString(self, args);
     }
 
-    PyErr_SetString(PyExc_TypeError, "a string or numeric is requireed");
+    PyErr_SetString(PyExc_TypeError, "a string or numeric is required");
     return (PyObject *)NULL;
 }