Log In - Home Page

Patch: string_to_array and array_to_string functions (not implode, explode)

Edit Patch - Move To Another CommitFest - Delete Patch

CommitFest 2010-07
Topic Built-in SQL Functions
Patch Status Committed
Author Pavel Stehule
Reviewers Brendan Jurd
Committer Tom Lane
Close Date 2010-08-10
Comments
Patch by okbobcz on 2010-05-06 04:10:43 AM: Initial version.

to_string, to_array functions are similar to array_to_string, string_to_array functions with better NULL handling. array_to_string ignore NULL values, string_to_array doesn't transform NULL string to NULL.
Comment by itagaki on 2010-07-12 01:09:21 AM: a question about new names.
Comment by okbobcz on 2010-07-13 01:16:34 PM: This thread contains a explanation of using a names "to_string" and "to_array"
Comment by okbobcz on 2010-07-13 01:18:09 PM: Merlin's proposal - using a new names
Patch by direvus on 2010-07-16 08:47:08 AM: Intial review, minor doc/comment revisions and questions about null_string = NULL behaviour.
Patch by okbobcz on 2010-07-20 06:36:22 AM: updated patch - functions are not marked as strict, handling of NULL separator and NULL NULL string is more smart now.
Patch by okbobcz on 2010-07-23 11:14:57 PM: This patch renames functions to "explode/implode".
Patch by direvus on 2010-07-30 04:01:35 PM: Reviewed Pavel's patch, added docs and refined comments, posted v4.
Comment by tgl on 2010-08-08 11:15:50 AM: v4 patch is MIA, I pinged Brendan to repost it
Patch by direvus on 2010-08-08 09:29:49 PM: Reposted patch v4.
Patch by tgl on 2010-08-09 11:49:40 AM: This is the correct message-ID for Brendan's repost of patch v4.

Add Comment

Please log in to comment on this patch.