7909ea Fix the get_next_id to be less SQL but more robust

Authored and Committed by Pierre-Yves Chibon 9 years ago
    Fix the get_next_id to be less SQL but more robust
    
        
file modified
+4 -4