Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31fe394

Browse files
committed
Include catalog/pg_type.h instead of manually extracting the interesting
oid values.
1 parenta8dbe42 commit31fe394

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

‎src/interfaces/python/mkdefines

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎src/interfaces/python/pgmodule.c

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,14 @@
2727
*/
2828

2929
#include<Python.h>
30-
#include<postgres.h>
31-
#include<libpq-fe.h>
32-
#include<libpq/libpq-fs.h>
30+
#include"postgres.h"
31+
#include"libpq-fe.h"
32+
#include"libpq/libpq-fs.h"
33+
#include"catalog/pg_type.h"
3334
#include<stdio.h>
3435
#include<stdlib.h>
3536
#include<string.h>
3637

37-
/* really bad stuff here - I'm so naughty */
38-
/* If you need to you can run mkdefines to get */
39-
/* current defines but it should not have changed */
40-
#defineINT2OID21
41-
#defineINT4OID23
42-
#defineOIDOID26
43-
#defineFLOAT4OID700
44-
#defineFLOAT8OID701
45-
#defineCASHOID790
46-
#defineNUMERICOID1700
47-
4838
staticPyObject*PGError;
4939
staticconstchar*PyPgVersion="3.2";
5040

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp