Why is the texture mapped differently in these Two Cuboids?
In your image it looks like the texture mapping is created on the mesh prior to changes made by modifiers (whether it is generate or UV or whatever doesn't matter here). This is causing the texture to appear to be split in half on the one with the boolean.

If you clicked apply on the boolean modifier they should look the same.