Skip to content

Add tsvector type support in DML adapter#796

Open
utafrali wants to merge 1 commit intoxataio:mainfrom
utafrali:fix/issue-576-table-that-has-a-tsvector-column-doesn-t
Open

Add tsvector type support in DML adapter#796
utafrali wants to merge 1 commit intoxataio:mainfrom
utafrali:fix/issue-576-table-that-has-a-tsvector-column-doesn-t

Conversation

@utafrali
Copy link
Copy Markdown

Description

Fixes #576. Tables with tsvector columns were failing to replicate because the DML adapter didn't have a handler for that type. Added support by converting []byte values to strings before they get used in the copy operation.

Related Issues

#576

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changes Made

Added a case in updateValueForCopy to handle tsvector columns. When a tsvector value comes in as []byte from the WAL, it gets converted to a string. If it's already a string, it passes through unchanged.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

Added two test cases: one for []byte input (which is what the WAL produces) and one for string input to cover both scenarios.

Code Quality

  • Code passes linting
  • Code passes tests
  • Generated files are up to date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table that has a tsvector column doesn't get replicated and exists the program

1 participant