Fixed incorrect detection of primary columns in field updates and fixed updates of rows with null values when primary columns are missing
Implemented utility function to print a fully quoted query