fixed bug_#4332 - Copy table no longer copies indexes

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>
Merge pull request #1079 from vpowerrc/bug#4332

fixed bug_#4332 - Copy table no longer copies indexes