DAD Raymond Farthing, who unleashed a racist rant at a Scottish police inspector, has been jailed.
The 37-year-old hurled a torrent of abuse at Inspector Steve Burnside, asking him: 'Why have you come to my country?'
This verbal attack ended with him being put in leg restraints, Gloucester Crown Court heard.
Farthing, of Cherry Close, Hardwicke, pleaded guilty to a charge of affray on September 16 this year. He was jailed for 30 weeks.
The court heard he had a long record for offences of public disorder and had made 62 previous court appearances for 182 offences.
Prosecutor Lisa Hennessy said police went to Farthing's home after getting a 999 call. The court heard he and his partner were rowing over her sleeping with someone else. They found him in his back garden holding a small child and saying "I'm taking the kid".
A policeman sprayed CS gas towards Farthing but it had no effect. Police managed to take the child off Farthing and wrap him in a blanket.
After threatening to knock out one of the officers, Farthing cycled away on a bike.
A short time later, a 60-year-old man answered a knock at his door in Tuffley Lane, Gloucester, and was shocked to find Farthing standing outside holding a bike over his head.
The court heard he shouted at nearby police officers, and said: "You ain't seen nothing yet."
Police then saw Farthing riding along Holmwood Drive into Grange Road.
Insp Burnside took out his baton and Mrs Hennessy said he then repeatedly abused the inspector for being Scottish.
Eventually, Farthing was overpowered, taken to the ground and put in leg restraints. He still managed to kick out at another officer, bruising his ribs.
When Farthing was interviewed, he accepted he may have used the anti-Scottish remarks.
Claire Malvern-White, defending, said: "There is a history between him and Inspector Burnside and he accepts he probably did use the language alleged."
Judge Jamie Tabor QC told Farthing: "You are your own worst enemy."