Skip to content

Commit

Permalink
Rewind result set for column comments before iterating over it, as it…
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Jun 7, 2016
1 parent 0ec226c commit 3641a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/dbconnection.pas
Expand Up @@ -2754,6 +2754,7 @@ function TDBConnection.GetCreateCode(Database, Schema, Name: String; NodeType: T
Result := Result + ' COMMENT ' + EscapeString(Cols.Col('column_comment'))
else if Comments <> nil then begin
// Find column comment from separate result
Comments.First;
while not Comments.Eof do begin
if Comments.Col('column')=Cols.Col('COLUMN_NAME') then begin
Result := Result + ' COMMENT ' + EscapeString(Comments.Col('comment'));
Expand Down

0 comments on commit 3641a18

Please sign in to comment.