Skip to content

Commit 6a698b4

Browse files
committed
Change default encoding back to xer
1 parent 3f6b406 commit 6a698b4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/include/asn1/pg-asn1-encode.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
*-------------------------------------------------------------------------
1111
*/
1212

13+
#include <asn1/ASNQuery.h>
14+
1315
#ifndef PGASN1ENCODE
1416

1517
typedef struct bufferInfo
@@ -19,4 +21,10 @@ typedef struct bufferInfo
1921
int length;
2022
} bufferInfo_t;
2123

24+
typedef struct transferBuffer
25+
{
26+
ASNQuery_t *queryStmt;
27+
bufferInfo_t bufferInfo;
28+
} transferBuffer_t;
29+
2230
#endif

src/interfaces/libpqasn1/fe-exec-asn1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void symbol_for_ruby_pg(void);
5050
int
5151
PQsendASNQuery(PGconn *conn, const char *query)
5252
{
53-
int encoding = 1;
53+
int encoding = 0;
5454
struct bufferInfo bufferInfo;
5555

5656
bufferInfo.buffer = query;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy