Tais993 / Hayame

Here we go again!
2 stars 0 forks source link

Move to columnLabel from columnIndex #28

Open Tais993 opened 2 years ago

Tais993 commented 2 years ago

Currently, in the code columnIndex is mainly being used.

This is fine, but the moment an column gets added, it has to be added to the end. This isn't always nice, and can cause weird tables.

Instead, columnLabel's should be used, that way the order doesn't matter and it can stay a logical order after updates.

This change only applies to ResultSet's, PreparedStatement's don't offer the functionality to use labels.