@@ -1013,7 +1013,7 @@ pgconn_backend_pid(VALUE self)
10131013 return INT2NUM (PQbackendPID (pg_get_pgconn (self )));
10141014}
10151015
1016- #ifndef HAVE_PQSETCHUNKEDROWSMODE
1016+ #ifndef LIBPQ_HAS_CHUNK_MODE
10171017typedef struct
10181018{
10191019 struct sockaddr_storage addr ;
@@ -1588,7 +1588,7 @@ pgconn_sync_describe_portal(VALUE self, VALUE stmt_name)
15881588}
15891589
15901590
1591- #ifdef HAVE_PQSETCHUNKEDROWSMODE
1591+ #ifdef LIBPQ_HAS_CHUNK_MODE
15921592/*
15931593 * call-seq:
15941594 * conn.sync_close_prepared( stmt_name ) -> PG::Result
@@ -1892,7 +1892,7 @@ pgconn_set_single_row_mode(VALUE self)
18921892 return self ;
18931893}
18941894
1895- #ifdef HAVE_PQSETCHUNKEDROWSMODE
1895+ #ifdef LIBPQ_HAS_CHUNK_MODE
18961896/*
18971897 * call-seq:
18981898 * conn.set_chunked_rows_mode -> self
@@ -2207,7 +2207,7 @@ pgconn_send_describe_portal(VALUE self, VALUE portal)
22072207 "PQsendDescribePortal" );
22082208}
22092209
2210- #ifdef HAVE_PQSETCHUNKEDROWSMODE
2210+ #ifdef LIBPQ_HAS_CHUNK_MODE
22112211/*
22122212 * call-seq:
22132213 * conn.send_close_prepared( statement_name ) -> nil
@@ -2333,7 +2333,7 @@ pgconn_sync_flush(VALUE self)
23332333 return (ret ) ? Qfalse : Qtrue ;
23342334}
23352335
2336- #ifndef HAVE_PQSETCHUNKEDROWSMODE
2336+ #ifndef LIBPQ_HAS_CHUNK_MODE
23372337static VALUE
23382338pgconn_sync_cancel (VALUE self )
23392339{
@@ -3632,7 +3632,7 @@ pgconn_async_describe_prepared(VALUE self, VALUE stmt_name)
36323632 return pgconn_async_describe_close_prepared_potral (self , stmt_name , pgconn_send_describe_prepared );
36333633}
36343634
3635- #ifdef HAVE_PQSETCHUNKEDROWSMODE
3635+ #ifdef LIBPQ_HAS_CHUNK_MODE
36363636/*
36373637 * call-seq:
36383638 * conn.close_prepared( statement_name ) -> PG::Result
@@ -3754,7 +3754,7 @@ pgconn_ssl_attribute_names(VALUE self)
37543754
37553755
37563756
3757- #ifdef HAVE_PQENTERPIPELINEMODE
3757+ #ifdef LIBPQ_HAS_PIPELINING
37583758/*
37593759 * call-seq:
37603760 * conn.pipeline_status -> Integer
@@ -3847,7 +3847,7 @@ pgconn_sync_pipeline_sync(VALUE self)
38473847}
38483848
38493849
3850- #ifdef HAVE_PQSETCHUNKEDROWSMODE
3850+ #ifdef LIBPQ_HAS_CHUNK_MODE
38513851/*
38523852 * call-seq:
38533853 * conn.send_pipeline_sync -> nil
@@ -4738,7 +4738,7 @@ init_pg_connection(void)
47384738 rb_define_method (rb_cPGconn , "socket" , pgconn_socket , 0 );
47394739 rb_define_method (rb_cPGconn , "socket_io" , pgconn_socket_io , 0 );
47404740 rb_define_method (rb_cPGconn , "backend_pid" , pgconn_backend_pid , 0 );
4741- #ifndef HAVE_PQSETCHUNKEDROWSMODE
4741+ #ifndef LIBPQ_HAS_CHUNK_MODE
47424742 rb_define_method (rb_cPGconn , "backend_key" , pgconn_backend_key , 0 );
47434743#endif
47444744 rb_define_method (rb_cPGconn , "connection_needs_password" , pgconn_connection_needs_password , 0 );
@@ -4752,7 +4752,7 @@ init_pg_connection(void)
47524752 rb_define_method (rb_cPGconn , "sync_exec_prepared" , pgconn_sync_exec_prepared , -1 );
47534753 rb_define_method (rb_cPGconn , "sync_describe_prepared" , pgconn_sync_describe_prepared , 1 );
47544754 rb_define_method (rb_cPGconn , "sync_describe_portal" , pgconn_sync_describe_portal , 1 );
4755- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4755+ #ifdef LIBPQ_HAS_CHUNK_MODE
47564756 rb_define_method (rb_cPGconn , "sync_close_prepared" , pgconn_sync_close_prepared , 1 );
47574757 rb_define_method (rb_cPGconn , "sync_close_portal" , pgconn_sync_close_portal , 1 );
47584758#endif
@@ -4763,7 +4763,7 @@ init_pg_connection(void)
47634763 rb_define_method (rb_cPGconn , "exec_prepared" , pgconn_async_exec_prepared , -1 );
47644764 rb_define_method (rb_cPGconn , "describe_prepared" , pgconn_async_describe_prepared , 1 );
47654765 rb_define_method (rb_cPGconn , "describe_portal" , pgconn_async_describe_portal , 1 );
4766- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4766+ #ifdef LIBPQ_HAS_CHUNK_MODE
47674767 rb_define_method (rb_cPGconn , "close_prepared" , pgconn_async_close_prepared , 1 );
47684768 rb_define_method (rb_cPGconn , "close_portal" , pgconn_async_close_portal , 1 );
47694769#endif
@@ -4775,7 +4775,7 @@ init_pg_connection(void)
47754775 rb_define_alias (rb_cPGconn , "async_exec_prepared" , "exec_prepared" );
47764776 rb_define_alias (rb_cPGconn , "async_describe_prepared" , "describe_prepared" );
47774777 rb_define_alias (rb_cPGconn , "async_describe_portal" , "describe_portal" );
4778- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4778+ #ifdef LIBPQ_HAS_CHUNK_MODE
47794779 rb_define_alias (rb_cPGconn , "async_close_prepared" , "close_prepared" );
47804780 rb_define_alias (rb_cPGconn , "async_close_portal" , "close_portal" );
47814781#endif
@@ -4788,7 +4788,7 @@ init_pg_connection(void)
47884788 rb_define_method (rb_cPGconn , "escape_bytea" , pgconn_s_escape_bytea , 1 );
47894789 rb_define_method (rb_cPGconn , "unescape_bytea" , pgconn_s_unescape_bytea , 1 );
47904790 rb_define_method (rb_cPGconn , "set_single_row_mode" , pgconn_set_single_row_mode , 0 );
4791- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4791+ #ifdef LIBPQ_HAS_CHUNK_MODE
47924792 rb_define_method (rb_cPGconn , "set_chunked_rows_mode" , pgconn_set_chunked_rows_mode , 1 );
47934793#endif
47944794
@@ -4810,7 +4810,7 @@ init_pg_connection(void)
48104810 rb_define_method (rb_cPGconn , "discard_results" , pgconn_discard_results , 0 );
48114811
48124812 /****** PG::Connection INSTANCE METHODS: Cancelling Queries in Progress ******/
4813- #ifndef HAVE_PQSETCHUNKEDROWSMODE
4813+ #ifndef LIBPQ_HAS_CHUNK_MODE
48144814 rb_define_method (rb_cPGconn , "sync_cancel" , pgconn_sync_cancel , 0 );
48154815#endif
48164816
@@ -4852,13 +4852,13 @@ init_pg_connection(void)
48524852 rb_define_method (rb_cPGconn , "ssl_attribute" , pgconn_ssl_attribute , 1 );
48534853 rb_define_method (rb_cPGconn , "ssl_attribute_names" , pgconn_ssl_attribute_names , 0 );
48544854
4855- #ifdef HAVE_PQENTERPIPELINEMODE
4855+ #ifdef LIBPQ_HAS_PIPELINING
48564856 rb_define_method (rb_cPGconn , "pipeline_status" , pgconn_pipeline_status , 0 );
48574857 rb_define_method (rb_cPGconn , "enter_pipeline_mode" , pgconn_enter_pipeline_mode , 0 );
48584858 rb_define_method (rb_cPGconn , "exit_pipeline_mode" , pgconn_exit_pipeline_mode , 0 );
48594859 rb_define_method (rb_cPGconn , "sync_pipeline_sync" , pgconn_sync_pipeline_sync , 0 );
48604860 rb_define_method (rb_cPGconn , "send_flush_request" , pgconn_send_flush_request , 0 );
4861- #ifdef HAVE_PQSETCHUNKEDROWSMODE
4861+ #ifdef LIBPQ_HAS_CHUNK_MODE
48624862 rb_define_method (rb_cPGconn , "send_pipeline_sync" , pgconn_send_pipeline_sync , 0 );
48634863#endif
48644864#endif
0 commit comments