I think you are describing something like a toothpick in the jaws of a bench vice ... the slender rod is not physically connected to the load but the ends are constrained. this is effectively a pinned connection. the rod should be able to resist compression loads up to the euler load, see earlier post, then as allen4 notes the buckled shape will induce side loads which the restaint cannot react so the rod fails.