File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ This release consists of 55 commits from 25 contributors. See credits at the end
23
23
24
24
## Migrating usages of ` Expr::Value `
25
25
26
- In v0.55, sqlparser the ` Expr::Value ` enum variant contains a ` ValueWithSpan ` instead of a ` Value ` . Here is how to migrate.
26
+ In v0.55 of sqlparser the ` Expr::Value ` enum variant contains a ` ValueWithSpan ` instead of a ` Value ` . Here is how to migrate.
27
27
28
28
### When pattern matching
29
29
@@ -34,13 +34,41 @@ In v0.55, sqlparser the `Expr::Value` enum variant contains a `ValueWithSpan` in
34
34
35
35
### When creating an ` Expr `
36
36
37
- Use the new ` Expr::value ` method (notice the lowercase ` v ` ), which will create a ` ValueWithSpan ` containing an empty span :
37
+ Use the new ` Expr::value ` method (notice the lowercase ` v ` ), which will create a ` ValueWithSpan ` containing an empty span:
38
38
39
39
``` diff
40
40
- Expr::Value(Value::SingleQuotedString(my_string))
41
41
+ Expr::value(Value::SingleQuotedString(my_string))
42
42
```
43
43
44
+ ## Migrating usages of ` ObjectName `
45
+
46
+ In v0.55 of sqlparser, the ` ObjectName ` structure has been changed as shown below. Here is now to migrate.
47
+
48
+ ``` diff
49
+ - pub struct ObjectName(pub Vec<Ident>);
50
+ + pub struct ObjectName(pub Vec<ObjectNamePart>)
51
+ ```
52
+
53
+ ### When constructing ` ObjectName `
54
+
55
+ Use the ` From ` impl:
56
+
57
+ ``` diff
58
+ - name: ObjectName(vec![Ident::new("f")]),
59
+ + name: ObjectName::from(vec![Ident::new("f")]),
60
+ ```
61
+
62
+ ### Accessing Spans
63
+
64
+ Use the ` span() ` function
65
+
66
+ ``` diff
67
+ - name.span
68
+ + name.span()
69
+ ```
70
+
71
+
44
72
45
73
** Breaking changes:**
46
74
You can’t perform that action at this time.
0 commit comments