@@ -865,7 +865,7 @@ pgconn_protocol_version(VALUE self)
865865 return INT2NUM (protocol_version );
866866}
867867
868- #ifdef HAVE_PQFULLPROTOCOLVERSION
868+ #ifdef LIBPQ_HAS_FULL_PROTOCOL_VERSION
869869/*
870870 * call-seq:
871871 * conn.full_protocol_version -> Integer
@@ -1038,7 +1038,7 @@ pgconn_backend_pid(VALUE self)
10381038 return INT2NUM (PQbackendPID (pg_get_pgconn (self )));
10391039}
10401040
1041- #ifndef HAVE_PQSETCHUNKEDROWSMODE
1041+ #ifndef LIBPQ_HAS_CHUNK_MODE
10421042typedef struct
10431043{
10441044 struct sockaddr_storage addr ;
@@ -1613,7 +1613,7 @@ pgconn_sync_describe_portal(VALUE self, VALUE stmt_name)
16131613}
16141614
16151615
1616- #ifdef HAVE_PQSETCHUNKEDROWSMODE
1616+ #ifdef LIBPQ_HAS_CHUNK_MODE
16171617/*
16181618 * call-seq:
16191619 * conn.sync_close_prepared( stmt_name ) -> PG::Result
@@ -1917,7 +1917,7 @@ pgconn_set_single_row_mode(VALUE self)
19171917 return self ;
19181918}
19191919
1920- #ifdef HAVE_PQSETCHUNKEDROWSMODE
1920+ #ifdef LIBPQ_HAS_CHUNK_MODE
19211921/*
19221922 * call-seq:
19231923 * conn.set_chunked_rows_mode -> self
@@ -2232,7 +2232,7 @@ pgconn_send_describe_portal(VALUE self, VALUE portal)
22322232 "PQsendDescribePortal" );
22332233}
22342234
2235- #ifdef HAVE_PQSETCHUNKEDROWSMODE
2235+ #ifdef LIBPQ_HAS_CHUNK_MODE
22362236/*
22372237 * call-seq:
22382238 * conn.send_close_prepared( statement_name ) -> nil
@@ -2358,7 +2358,7 @@ pgconn_sync_flush(VALUE self)
23582358 return (ret ) ? Qfalse : Qtrue ;
23592359}
23602360
2361- #ifndef HAVE_PQSETCHUNKEDROWSMODE
2361+ #ifndef LIBPQ_HAS_CHUNK_MODE
23622362static VALUE
23632363pgconn_sync_cancel (VALUE self )
23642364{
@@ -3657,7 +3657,7 @@ pgconn_async_describe_prepared(VALUE self, VALUE stmt_name)
36573657 return pgconn_async_describe_close_prepared_potral (self , stmt_name , pgconn_send_describe_prepared );
36583658}
36593659
3660- #ifdef HAVE_PQSETCHUNKEDROWSMODE
3660+ #ifdef LIBPQ_HAS_CHUNK_MODE
36613661/*
36623662 * call-seq:
36633663 * conn.close_prepared( statement_name ) -> PG::Result
@@ -3779,7 +3779,7 @@ pgconn_ssl_attribute_names(VALUE self)
37793779
37803780
37813781
3782- #ifdef HAVE_PQENTERPIPELINEMODE
3782+ #ifdef LIBPQ_HAS_PIPELINING
37833783/*
37843784 * call-seq:
37853785 * conn.pipeline_status -> Integer
@@ -3872,7 +3872,7 @@ pgconn_sync_pipeline_sync(VALUE self)
38723872}
38733873
38743874
3875- #ifdef HAVE_PQSETCHUNKEDROWSMODE
3875+ #ifdef LIBPQ_HAS_CHUNK_MODE
38763876/*
38773877 * call-seq:
38783878 * conn.send_pipeline_sync -> nil
@@ -4754,15 +4754,15 @@ init_pg_connection(void)
47544754 rb_define_method (rb_cPGconn , "transaction_status" , pgconn_transaction_status , 0 );
47554755 rb_define_method (rb_cPGconn , "parameter_status" , pgconn_parameter_status , 1 );
47564756 rb_define_method (rb_cPGconn , "protocol_version" , pgconn_protocol_version , 0 );
4757- #ifdef HAVE_PQFULLPROTOCOLVERSION
4757+ #ifdef LIBPQ_HAS_FULL_PROTOCOL_VERSION
47584758 rb_define_method (rb_cPGconn , "full_protocol_version" , pgconn_full_protocol_version , 0 );
47594759#endif
47604760 rb_define_method (rb_cPGconn , "server_version" , pgconn_server_version , 0 );
47614761 rb_define_method (rb_cPGconn , "error_message" , pgconn_error_message , 0 );
47624762 rb_define_method (rb_cPGconn , "socket" , pgconn_socket , 0 );
47634763 rb_define_method (rb_cPGconn , "socket_io" , pgconn_socket_io , 0 );
47644764 rb_define_method (rb_cPGconn , "backend_pid" , pgconn_backend_pid , 0 );
4765- #ifndef HAVE_PQSETCHUNKEDROWSMODE
4765+ #ifndef LIBPQ_HAS_CHUNK_MODE
47664766 rb_define_method (rb_cPGconn , "backend_key" , pgconn_backend_key , 0 );
47674767#endif
47684768 rb_define_method (rb_cPGconn , "connection_needs_password" , pgconn_connection_needs_password , 0 );
@@ -4776,7 +4776,7 @@ init_pg_connection(void)
47764776 rb_define_method (rb_cPGconn , "sync_exec_prepared" , pgconn_sync_exec_prepared , -1 );
47774777 rb_define_method (rb_cPGconn , "sync_describe_prepared" , pgconn_sync_describe_prepared , 1 );
47784778 rb_define_method (rb_cPGconn , "sync_describe_portal" , pgconn_sync_describe_portal , 1 );
4779- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4779+ #ifdef LIBPQ_HAS_CHUNK_MODE
47804780 rb_define_method (rb_cPGconn , "sync_close_prepared" , pgconn_sync_close_prepared , 1 );
47814781 rb_define_method (rb_cPGconn , "sync_close_portal" , pgconn_sync_close_portal , 1 );
47824782#endif
@@ -4787,7 +4787,7 @@ init_pg_connection(void)
47874787 rb_define_method (rb_cPGconn , "exec_prepared" , pgconn_async_exec_prepared , -1 );
47884788 rb_define_method (rb_cPGconn , "describe_prepared" , pgconn_async_describe_prepared , 1 );
47894789 rb_define_method (rb_cPGconn , "describe_portal" , pgconn_async_describe_portal , 1 );
4790- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4790+ #ifdef LIBPQ_HAS_CHUNK_MODE
47914791 rb_define_method (rb_cPGconn , "close_prepared" , pgconn_async_close_prepared , 1 );
47924792 rb_define_method (rb_cPGconn , "close_portal" , pgconn_async_close_portal , 1 );
47934793#endif
@@ -4799,7 +4799,7 @@ init_pg_connection(void)
47994799 rb_define_alias (rb_cPGconn , "async_exec_prepared" , "exec_prepared" );
48004800 rb_define_alias (rb_cPGconn , "async_describe_prepared" , "describe_prepared" );
48014801 rb_define_alias (rb_cPGconn , "async_describe_portal" , "describe_portal" );
4802- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4802+ #ifdef LIBPQ_HAS_CHUNK_MODE
48034803 rb_define_alias (rb_cPGconn , "async_close_prepared" , "close_prepared" );
48044804 rb_define_alias (rb_cPGconn , "async_close_portal" , "close_portal" );
48054805#endif
@@ -4812,7 +4812,7 @@ init_pg_connection(void)
48124812 rb_define_method (rb_cPGconn , "escape_bytea" , pgconn_s_escape_bytea , 1 );
48134813 rb_define_method (rb_cPGconn , "unescape_bytea" , pgconn_s_unescape_bytea , 1 );
48144814 rb_define_method (rb_cPGconn , "set_single_row_mode" , pgconn_set_single_row_mode , 0 );
4815- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4815+ #ifdef LIBPQ_HAS_CHUNK_MODE
48164816 rb_define_method (rb_cPGconn , "set_chunked_rows_mode" , pgconn_set_chunked_rows_mode , 1 );
48174817#endif
48184818
@@ -4834,7 +4834,7 @@ init_pg_connection(void)
48344834 rb_define_method (rb_cPGconn , "discard_results" , pgconn_discard_results , 0 );
48354835
48364836 /****** PG::Connection INSTANCE METHODS: Cancelling Queries in Progress ******/
4837- #ifndef HAVE_PQSETCHUNKEDROWSMODE
4837+ #ifndef LIBPQ_HAS_CHUNK_MODE
48384838 rb_define_method (rb_cPGconn , "sync_cancel" , pgconn_sync_cancel , 0 );
48394839#endif
48404840
@@ -4876,13 +4876,13 @@ init_pg_connection(void)
48764876 rb_define_method (rb_cPGconn , "ssl_attribute" , pgconn_ssl_attribute , 1 );
48774877 rb_define_method (rb_cPGconn , "ssl_attribute_names" , pgconn_ssl_attribute_names , 0 );
48784878
4879- #ifdef HAVE_PQENTERPIPELINEMODE
4879+ #ifdef LIBPQ_HAS_PIPELINING
48804880 rb_define_method (rb_cPGconn , "pipeline_status" , pgconn_pipeline_status , 0 );
48814881 rb_define_method (rb_cPGconn , "enter_pipeline_mode" , pgconn_enter_pipeline_mode , 0 );
48824882 rb_define_method (rb_cPGconn , "exit_pipeline_mode" , pgconn_exit_pipeline_mode , 0 );
48834883 rb_define_method (rb_cPGconn , "sync_pipeline_sync" , pgconn_sync_pipeline_sync , 0 );
48844884 rb_define_method (rb_cPGconn , "send_flush_request" , pgconn_send_flush_request , 0 );
4885- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4885+ #ifdef LIBPQ_HAS_CHUNK_MODE
48864886 rb_define_method (rb_cPGconn , "send_pipeline_sync" , pgconn_send_pipeline_sync , 0 );
48874887#endif
48884888#endif
0 commit comments