Update when send query to sql client.