A Study of In-Context-Learning-Based Text-to-SQL Errors