pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMissing declarations in pgtypes.h
2+ messages / 2 participants
[nested] [flat]
* Missing declarations in pgtypes.h
@ 2014-03-12 04:13 Michael Paquier <michael.paquier@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Paquier @ 2014-03-12 04:13 UTC (permalink / raw)
To: pgsql-odbc
Hi all,
The following functions are not declared in pgtypes.h:
pgtype_attr_precision
pgtype_attr_desclength
pgtype_attr_scale
The attached patch fixes that.
Regards,
--
Michael
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Attachments:
20140312_pgtypes_h_missing.patch (text/x-diff, 1.1K) download
diff --git a/pgtypes.h b/pgtypes.h
index 5d15bea..38fe6ea 100644
--- a/pgtypes.h
+++ b/pgtypes.h
@@ -107,6 +107,13 @@ SQLSMALLINT pgtype_to_datetime_sub(const StatementClass *stmt, OID type, int col
SQLSMALLINT pgtype_to_ctype(const StatementClass *stmt, OID type, int col);
const char *pgtype_to_name(const StatementClass *stmt, OID type, int col, BOOL auto_increment);
+SQLSMALLINT pgtype_attr_precision(const ConnectionClass *conn, OID type,
+ int atttypmod, int adtsize_or_longest, int handle_unknown_size_as);
+Int4 pgtype_attr_desclength(const ConnectionClass *conn, OID type,
+ int atttypmod, int adtsize_or_longestlen, int handle_unknown_size_as);
+Int2 pgtype_attr_scale(const ConnectionClass *conn, OID type, int atttypmod,
+ int adtsize_or_longestlen, int handle_unknown_size_as);
+
SQLSMALLINT pgtype_attr_to_concise_type(const ConnectionClass *conn, OID type, int typmod, int adtsize_or_longestlen);
SQLSMALLINT pgtype_attr_to_sqldesctype(const ConnectionClass *conn, OID type, int typmod);
SQLSMALLINT pgtype_attr_to_datetime_sub(const ConnectionClass *conn, OID type, int typmod);
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Missing declarations in pgtypes.h
@ 2014-03-12 07:41 Heikki Linnakangas <hlinnakangas@vmware.com>
parent: Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Heikki Linnakangas @ 2014-03-12 07:41 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-odbc
On 03/12/2014 06:13 AM, Michael Paquier wrote:
> Hi all,
>
> The following functions are not declared in pgtypes.h:
> pgtype_attr_precision
> pgtype_attr_desclength
> pgtype_attr_scale
>
> The attached patch fixes that.
Thanks, committed. (I put them together with the declarations of the
other pgtype_attr_* functions)
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-03-12 07:41 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-03-12 04:13 Missing declarations in pgtypes.h Michael Paquier <michael.paquier@gmail.com>
2014-03-12 07:41 ` Heikki Linnakangas <hlinnakangas@vmware.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox