diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:46:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-27 10:46:33 +0000 |
commit | aa1d1f1ea72887a3efb78f4950e27bc79dfa3766 (patch) | |
tree | a9f5bf5ab14c69d011e21d40f8504c4f94a8de72 /tests/test_serde.py | |
parent | Adding upstream version 11.2.0. (diff) | |
download | sqlglot-aa1d1f1ea72887a3efb78f4950e27bc79dfa3766.tar.xz sqlglot-aa1d1f1ea72887a3efb78f4950e27bc79dfa3766.zip |
Adding upstream version 11.2.3.upstream/11.2.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_serde.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_serde.py b/tests/test_serde.py index 603a155..6b5c989 100644 --- a/tests/test_serde.py +++ b/tests/test_serde.py @@ -31,3 +31,9 @@ class TestSerDe(unittest.TestCase): after = self.dump_load(before) self.assertEqual(before.type, after.type) self.assertEqual(before.this.type, after.this.type) + + def test_meta(self): + before = parse_one("SELECT * FROM X") + before.meta["x"] = 1 + after = self.dump_load(before) + self.assertEqual(before.meta, after.meta) |