Fix handling of long text in SQL textarea