Skip to content

Commit

Permalink
Update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Feb 21, 2024
1 parent f2390f3 commit 6dbb6ad
Show file tree
Hide file tree
Showing 117 changed files with 5,355 additions and 8,173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@ Ok(
),
def: Some(
SQLValueFunction(
Object({
"location": Number(
73,
),
"op": String(
"SVFOP_CURRENT_TIMESTAMP",
),
"typmod": Number(
-1,
),
}),
Object {
"location": Number(73),
"op": String("SVFOP_CURRENT_TIMESTAMP"),
"typmod": Number(-1),
},
),
),
behavior: Restrict,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ Ok(
[
RawStmt {
stmt: AlterDatabaseRefreshCollStmt(
Object({
"dbname": String(
"pipelines",
),
}),
Object {
"dbname": String("pipelines"),
},
),
stmt_location: 0,
stmt_len: Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,19 @@ Ok(
},
RawStmt {
stmt: AlterOwnerStmt(
Object({
"newowner": Object({
"location": Number(
70,
),
"rolename": String(
"new_owner",
),
"roletype": String(
"ROLESPEC_CSTRING",
),
}),
"object": Object({
"String": Object({
"sval": String(
"name",
),
}),
}),
"objectType": String(
"OBJECT_DATABASE",
),
}),
Object {
"newowner": Object {
"location": Number(70),
"rolename": String("new_owner"),
"roletype": String("ROLESPEC_CSTRING"),
},
"object": Object {
"String": Object {
"sval": String("name"),
},
},
"objectType": String("OBJECT_DATABASE"),
},
),
stmt_location: 40,
stmt_len: Some(
Expand All @@ -55,33 +45,23 @@ Ok(
},
RawStmt {
stmt: AlterDatabaseStmt(
Object({
"dbname": String(
"name",
),
"options": Array([
Object({
"DefElem": Object({
"arg": Object({
"String": Object({
"sval": String(
"new_tablespace",
),
}),
}),
"defaction": String(
"DEFELEM_UNSPEC",
),
"defname": String(
"tablespace",
),
"location": Number(
116,
),
}),
}),
]),
}),
Object {
"dbname": String("name"),
"options": Array [
Object {
"DefElem": Object {
"arg": Object {
"String": Object {
"sval": String("new_tablespace"),
},
},
"defaction": String("DEFELEM_UNSPEC"),
"defname": String("tablespace"),
"location": Number(116),
},
},
],
},
),
stmt_location: 80,
stmt_len: Some(
Expand All @@ -90,19 +70,13 @@ Ok(
},
RawStmt {
stmt: AlterDatabaseSetStmt(
Object({
"dbname": String(
"name",
),
"setstmt": Object({
"kind": String(
"VAR_RESET",
),
"name": String(
"configuration_parameter",
),
}),
}),
Object {
"dbname": String("name"),
"setstmt": Object {
"kind": String("VAR_RESET"),
"name": String("configuration_parameter"),
},
},
),
stmt_location: 131,
stmt_len: Some(
Expand All @@ -111,16 +85,12 @@ Ok(
},
RawStmt {
stmt: AlterDatabaseSetStmt(
Object({
"dbname": String(
"name",
),
"setstmt": Object({
"kind": String(
"VAR_RESET_ALL",
),
}),
}),
Object {
"dbname": String("name"),
"setstmt": Object {
"kind": String("VAR_RESET_ALL"),
},
},
),
stmt_location: 182,
stmt_len: Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,71 +6,49 @@ Ok(
[
RawStmt {
stmt: AlterDefaultPrivilegesStmt(
Object({
"action": Object({
"behavior": String(
"DROP_RESTRICT",
),
"grantees": Array([
Object({
"RoleSpec": Object({
"location": Number(
70,
),
"roletype": String(
"ROLESPEC_PUBLIC",
),
}),
}),
]),
"is_grant": Bool(
true,
),
"objtype": String(
"OBJECT_TABLE",
),
"privileges": Array([
Object({
"AccessPriv": Object({
"priv_name": String(
"select",
),
}),
}),
]),
"targtype": String(
"ACL_TARGET_DEFAULTS",
),
}),
"options": Array([
Object({
"DefElem": Object({
"arg": Object({
"List": Object({
"items": Array([
Object({
"String": Object({
"sval": String(
"myschema",
),
}),
}),
]),
}),
}),
"defaction": String(
"DEFELEM_UNSPEC",
),
"defname": String(
"schemas",
),
"location": Number(
25,
),
}),
}),
]),
}),
Object {
"action": Object {
"behavior": String("DROP_RESTRICT"),
"grantees": Array [
Object {
"RoleSpec": Object {
"location": Number(70),
"roletype": String("ROLESPEC_PUBLIC"),
},
},
],
"is_grant": Bool(true),
"objtype": String("OBJECT_TABLE"),
"privileges": Array [
Object {
"AccessPriv": Object {
"priv_name": String("select"),
},
},
],
"targtype": String("ACL_TARGET_DEFAULTS"),
},
"options": Array [
Object {
"DefElem": Object {
"arg": Object {
"List": Object {
"items": Array [
Object {
"String": Object {
"sval": String("myschema"),
},
},
],
},
},
"defaction": String("DEFELEM_UNSPEC"),
"defname": String("schemas"),
"location": Number(25),
},
},
],
},
),
stmt_location: 0,
stmt_len: Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,18 @@ Ok(
[
RawStmt {
stmt: AlterEnumStmt(
Object({
"newVal": String(
"orange",
),
"newValIsAfter": Bool(
true,
),
"newValNeighbor": String(
"red",
),
"typeName": Array([
Object({
"String": Object({
"sval": String(
"colors",
),
}),
}),
]),
}),
Object {
"newVal": String("orange"),
"newValIsAfter": Bool(true),
"newValNeighbor": String("red"),
"typeName": Array [
Object {
"String": Object {
"sval": String("colors"),
},
},
],
},
),
stmt_location: 0,
stmt_len: Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ Ok(
[
RawStmt {
stmt: AlterEventTrigStmt(
Object({
"tgenabled": String(
"D",
),
"trigname": String(
"name",
),
}),
Object {
"tgenabled": String("D"),
"trigname": String("name"),
},
),
stmt_location: 0,
stmt_len: Some(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ Ok(
[
RawStmt {
stmt: AlterObjectSchemaStmt(
Object({
"newschema": String(
"utils",
),
"object": Object({
"String": Object({
"sval": String(
"hstore",
),
}),
}),
"objectType": String(
"OBJECT_EXTENSION",
),
}),
Object {
"newschema": String("utils"),
"object": Object {
"String": Object {
"sval": String("hstore"),
},
},
"objectType": String("OBJECT_EXTENSION"),
},
),
stmt_location: 0,
stmt_len: Some(
Expand Down
Loading

0 comments on commit 6dbb6ad

Please # to comment.