Skip to content

Commit 6ad3622

Browse files
committed
Add comments
1 parent c80fbf2 commit 6ad3622

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/stmt.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ func (s *Stmt) WarningsNum() int {
3939

4040
// GetParamFields returns the parameter field definitions from the PREPARE response.
4141
// Implements server.StmtFieldsProvider for proxy passthrough.
42+
// The caller should not modify the returned slice.
4243
func (s *Stmt) GetParamFields() []*mysql.Field {
4344
return s.paramFields
4445
}
4546

4647
// GetColumnFields returns the column field definitions from the PREPARE response.
4748
// Implements server.StmtFieldsProvider for proxy passthrough.
49+
// The caller should not modify the returned slice.
4850
func (s *Stmt) GetColumnFields() []*mysql.Field {
4951
return s.columnFields
5052
}

0 commit comments

Comments
 (0)