But they told me it would go through a metal detector
GLOCK - Plastic pistol myths
Contrary to early reports, GLOCK pistols do set off metal detectors and can indeed be detected by X-ray machines, due to their metal barrels and slides. The claim that they could not was first made in an article published in the Washington Post on January 13, 1985, entitled, "Quaddafi Buying Austrian Plastic Pistol." In this article, vocal gun control advocate Jack Anderson made the allegations, which were then reported without fact-checking by the Associated Press and further reported by many United States television news stations and newspapers. It has since become an urban legend that to this day continues to appear in news reports and movies, and has even been a topic of debate in the United States Congress.
In fact, 83% (by weight) of the GLOCK pistol is ordinary gun steel and the "plastic" parts are in fact a dense polymer known as 'Polymer 2' which is radio-opaque and thus also shows up under X-ray security equipment. In addition, virtually all of these "plastic" parts contain embedded steel to make them functional, not to make them "detectable". Contrary to popular movies like Die Hard 2: Die Harder and In the Line of Fire, neither GLOCK nor any other gun maker has ever produced a "ceramic" or "plastic" firearm which is undetectable by ordinary security screening devices.
Die Hard 2 specifically refers to a non-existent GLOCK 7 with many fictitious characteristics from the character John McClane portrayed by Bruce Willis:
That punk pulled a GLOCK 7 on me! You know what that is? It's a porcelain gun made in Germany. It doesn't show up on your airport X-ray machines, and it cost more than you make here in a month!
In fact, GLOCK pistols are made of polymer and steel, are made in Austria, are visible to X-ray equipment, and are not significantly more expensive than comparable firearms.
http://www.experiencefestival.com/a/glock - plastic pistol myths/id/5070784