@@ -11,8 +11,8 @@ CREATE OR REPLACE DEFINER=`ispyb_root`@`%` PROCEDURE `upsert_dcg_grid`(
1111 p_stepsX double,
1212 p_stepsY double,
1313 p_meshAngle double,
14- p_pixelsPerMicronX float,
15- p_pixelsPerMicronY float,
14+ p_micronsPerPixelX float,
15+ p_micronsPerPixelY float,
1616 p_snapshotOffsetXPixel float,
1717 p_snapshotOffsetYPixel float,
1818 p_orientation enum(' vertical' ,' horizontal' ),
@@ -21,10 +21,10 @@ CREATE OR REPLACE DEFINER=`ispyb_root`@`%` PROCEDURE `upsert_dcg_grid`(
2121 MODIFIES SQL DATA
2222BEGIN
2323 IF p_dcgId IS NOT NULL THEN
24- INSERT INTO GridInfo (gridInfoId, dataCollectionGroupId, dx_mm, dy_mm, steps_x, steps_y, meshAngle,
24+ INSERT INTO GridInfo (gridInfoId, dataCollectionGroupId, dx_mm, dy_mm, steps_x, steps_y, meshAngle,
2525 pixelsPerMicronX, pixelsPerMicronY, micronsPerPixelX, micronsPerPixelY,
2626 snapshot_offsetXPixel, snapshot_offsetYPixel, orientation, snaked)
27- VALUES (p_id, p_dcgId, p_dxInMm, p_dyInMm, p_stepsX, p_stepsY, p_meshAngle,
27+ VALUES (p_id, p_dcgId, p_dxInMm, p_dyInMm, p_stepsX, p_stepsY, p_meshAngle,
2828 p_pixelsPerMicronX, p_pixelsPerMicronY, p_pixelsPerMicronX, p_pixelsPerMicronY,
2929 p_snapshotOffsetXPixel, p_snapshotOffsetYPixel, p_orientation, p_snaked)
3030 ON DUPLICATE KEY UPDATE
3434 steps_x = IFNULL(p_stepsX, steps_x),
3535 steps_y = IFNULL(p_stepsY, steps_y),
3636 meshAngle = IFNULL(p_meshAngle, meshAngle),
37- pixelsPerMicronX = IFNULL(p_pixelsPerMicronX, pixelsPerMicronX),
38- pixelsPerMicronY = IFNULL(p_pixelsPerMicronY, pixelsPerMicronY),
39- micronsPerPixelX = IFNULL(p_pixelsPerMicronX, micronsPerPixelX),
40- micronsPerPixelY = IFNULL(p_pixelsPerMicronY, micronsPerPixelY),
37+ micronsPerPixelX = IFNULL(p_micronsPerPixelX, micronsPerPixelX),
38+ micronsPerPixelY = IFNULL(p_micronsPerPixelY, micronsPerPixelY),
4139 snapshot_offsetXPixel = IFNULL(p_snapshotOffsetXPixel, snapshot_offsetXPixel),
4240 snapshot_offsetYPixel = IFNULL(p_snapshotOffsetYPixel, snapshot_offsetYPixel),
4341 orientation = IFNULL(p_orientation, orientation),
0 commit comments