Skip to main content
Post Closed as "Duplicate" by gnat, user4151918, Luke, SuperBiasedMan, NathanOliver
minor typos and capitalization tweaks
Source Link
elixenide
  • 44.8k
  • 23
  • 123
  • 123

I came across a proposèdproposed edit where the code (a SELECT statement) is considered by editor to be incorrect so editor proposes changes in the code.

select * from db
cross join (select count(*) from db2) t1
cross join (select count(*) from db3) t2

would become

select * from db
cross join (select count(*) as total2 from db2) t1
cross join (select count(*) as totla3 from db3) t2

intuitivelyIntuitively, iI would tend to reject said edit because an incorrect answer should be indicated as such, IMO. i I.e., the editor should comment regarding incorrect syntax and propose a correct answer with reference to author of original answer.

isIs this the correct/ethical procedure to adopt?

NOTE: many posts address similar issues, but they to all seem to pertain to style, istyle; I could not find any question in MSO which addresses changes to correct an incorrect answer or malfunctioning snippet proposed by another author.

I came across a proposèd edit where the code (a SELECT statement) is considered by editor to be incorrect so editor proposes changes in the code.

select * from db
cross join (select count(*) from db2) t1
cross join (select count(*) from db3) t2

would become

select * from db
cross join (select count(*) as total2 from db2) t1
cross join (select count(*) as totla3 from db3) t2

intuitively, i would tend to reject said edit because an incorrect answer should be indicated as such, IMO. i.e. editor should comment regarding incorrect syntax and propose a correct answer with reference to author of original answer.

is this the correct/ethical procedure to adopt?

NOTE: many posts address similar issues, but they to all seem to pertain to style, i could not find any question in MSO which addresses changes to correct an incorrect answer or malfunctioning snippet proposed by another author.

I came across a proposed edit where the code (a SELECT statement) is considered by editor to be incorrect so editor proposes changes in the code.

select * from db
cross join (select count(*) from db2) t1
cross join (select count(*) from db3) t2

would become

select * from db
cross join (select count(*) as total2 from db2) t1
cross join (select count(*) as totla3 from db3) t2

Intuitively, I would tend to reject said edit because an incorrect answer should be indicated as such, IMO. I.e., the editor should comment regarding incorrect syntax and propose a correct answer with reference to author of original answer.

Is this the correct/ethical procedure to adopt?

NOTE: many posts address similar issues, but they to all seem to pertain to style; I could not find any question in MSO which addresses changes to correct an incorrect answer or malfunctioning snippet proposed by another author.

Source Link
tony gil
  • 9.6k
  • 12
  • 8

Is editing incorrect code in an answer by another author acceptable?

I came across a proposèd edit where the code (a SELECT statement) is considered by editor to be incorrect so editor proposes changes in the code.

select * from db
cross join (select count(*) from db2) t1
cross join (select count(*) from db3) t2

would become

select * from db
cross join (select count(*) as total2 from db2) t1
cross join (select count(*) as totla3 from db3) t2

intuitively, i would tend to reject said edit because an incorrect answer should be indicated as such, IMO. i.e. editor should comment regarding incorrect syntax and propose a correct answer with reference to author of original answer.

is this the correct/ethical procedure to adopt?

NOTE: many posts address similar issues, but they to all seem to pertain to style, i could not find any question in MSO which addresses changes to correct an incorrect answer or malfunctioning snippet proposed by another author.