From 5f734dbeba312c223cb634cea315d6d6fe84a464 Mon Sep 17 00:00:00 2001 From: Blargian Date: Sun, 6 Oct 2024 12:08:32 +0200 Subject: [PATCH 1/3] remove duplicate connection_id and add it as an alias to connectionId --- .../functions/other-functions.md | 36 ++----------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/docs/en/sql-reference/functions/other-functions.md b/docs/en/sql-reference/functions/other-functions.md index 24489f2b7e0..a3dde0be20f 100644 --- a/docs/en/sql-reference/functions/other-functions.md +++ b/docs/en/sql-reference/functions/other-functions.md @@ -3873,6 +3873,8 @@ Retrieves the connection ID of the client that submitted the current query and r connectionId() ``` +Alias: `connection_id`. + **Parameters** None. @@ -3897,40 +3899,6 @@ SELECT connectionId(); 0 ``` -## connection_id - -An alias of `connectionId`. Retrieves the connection ID of the client that submitted the current query and returns it as a UInt64 integer. - -**Syntax** - -```sql -connection_id() -``` - -**Parameters** - -None. - -**Returned value** - -Returns an integer of type UInt64. - -**Implementation details** - -This function is most useful in debugging scenarios or for internal purposes within the MySQL handler. It was created for compatibility with [MySQL's `CONNECTION_ID` function](https://dev.mysql.com/doc/refman/8.0/en/information-functions.html#function_connection-id) It is not typically used in production queries. - -**Example** - -Query: - -```sql -SELECT connection_id(); -``` - -```response -0 -``` - ## getClientHTTPHeader Get the value of an HTTP header. From f151d4f4b544f3a4ec5243c7d182beb8ebcd40c6 Mon Sep 17 00:00:00 2001 From: Blargian Date: Tue, 8 Oct 2024 17:31:33 +0200 Subject: [PATCH 2/3] link to UInt64 page --- docs/en/sql-reference/functions/other-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/sql-reference/functions/other-functions.md b/docs/en/sql-reference/functions/other-functions.md index a3dde0be20f..c2f09626140 100644 --- a/docs/en/sql-reference/functions/other-functions.md +++ b/docs/en/sql-reference/functions/other-functions.md @@ -3871,9 +3871,9 @@ Retrieves the connection ID of the client that submitted the current query and r ```sql connectionId() -``` +``` -Alias: `connection_id`. +Alias: `connection_id`. **Parameters** @@ -3881,7 +3881,7 @@ None. **Returned value** -Returns an integer of type UInt64. +Returns an integer of type UInt64. [UInt64](../data-types/int-uint.md). **Implementation details** From 7569d6917eb7a8814c36180e4cfc8666fb31404a Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Wed, 9 Oct 2024 03:41:18 +0200 Subject: [PATCH 3/3] Update other-functions.md --- docs/en/sql-reference/functions/other-functions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/sql-reference/functions/other-functions.md b/docs/en/sql-reference/functions/other-functions.md index c2f09626140..5e95a64e8e3 100644 --- a/docs/en/sql-reference/functions/other-functions.md +++ b/docs/en/sql-reference/functions/other-functions.md @@ -3871,9 +3871,9 @@ Retrieves the connection ID of the client that submitted the current query and r ```sql connectionId() -``` +``` -Alias: `connection_id`. +Alias: `connection_id`. **Parameters** @@ -3881,7 +3881,7 @@ None. **Returned value** -Returns an integer of type UInt64. [UInt64](../data-types/int-uint.md). +The current connection ID. [UInt64](../data-types/int-uint.md). **Implementation details**