OTTAWA -- The federal government plans to appeal a Quebec court ruling that blocked the destruction of gun registry records and ordered the data handed over to the province.

Minister of State Maxime Bernier has told the Commons the government will appeal the Quebec Superior Court decision.

Last week Superior Court Judge Marc-Andre Blanchard voided two sections of the Conservative government's legislation to scrap the long-gun registry.

He ordered the federal government to give all records on Quebec-owned rifles and shotguns in the registry to the provincial government within 30 days.

The Conservatives have been adamant about scrapping the long-gun registry and destroying the existing data.

They say any province which wants its own registry is welcome to start from scratch.