@@ -11,8 +11,8 @@ CREATE OR REPLACE DEFINER=`ispyb_root`@`%` PROCEDURE `upsert_dcg_grid`(
11
11
p_stepsX double,
12
12
p_stepsY double,
13
13
p_meshAngle double,
14
- p_pixelsPerMicronX float,
15
- p_pixelsPerMicronY float,
14
+ p_micronsPerPixelX float,
15
+ p_micronsPerPixelY float,
16
16
p_snapshotOffsetXPixel float,
17
17
p_snapshotOffsetYPixel float,
18
18
p_orientation enum(' vertical' ,' horizontal' ),
@@ -21,10 +21,10 @@ CREATE OR REPLACE DEFINER=`ispyb_root`@`%` PROCEDURE `upsert_dcg_grid`(
21
21
MODIFIES SQL DATA
22
22
BEGIN
23
23
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,
25
25
pixelsPerMicronX, pixelsPerMicronY, micronsPerPixelX, micronsPerPixelY,
26
26
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,
28
28
p_pixelsPerMicronX, p_pixelsPerMicronY, p_pixelsPerMicronX, p_pixelsPerMicronY,
29
29
p_snapshotOffsetXPixel, p_snapshotOffsetYPixel, p_orientation, p_snaked)
30
30
ON DUPLICATE KEY UPDATE
34
34
steps_x = IFNULL(p_stepsX, steps_x),
35
35
steps_y = IFNULL(p_stepsY, steps_y),
36
36
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),
41
39
snapshot_offsetXPixel = IFNULL(p_snapshotOffsetXPixel, snapshot_offsetXPixel),
42
40
snapshot_offsetYPixel = IFNULL(p_snapshotOffsetYPixel, snapshot_offsetYPixel),
43
41
orientation = IFNULL(p_orientation, orientation),
0 commit comments