Commit d685c94
cruvie
fix: ensure driver.Valuer.Value() is called for simple arguments
The convertSimpleArgument function now properly handles driver.Valuer interface
by calling the Value() method when the argument implements driver.Valuer.
This ensures that custom value types implementing driver.Valuer are correctly
processed before being passed to the PostgreSQL type encoding system.
This change makes the behavior consistent between simple and extended query
protocols regarding driver.Valuer handling.1 parent fb6c054 commit d685c94
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
0 commit comments